Class ElementCharacteristics

java.lang.Object
eu.su.mas.dedale.env.mapElements.ElementCharacteristics
All Implemented Interfaces:
java.io.Serializable

public abstract class ElementCharacteristics
extends java.lang.Object
implements java.io.Serializable
This class contain, for each element on the map, its characteristics

- Treasures (gold and diamond) : lock status - Well : detection radius

Author:
hc
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    ElementCharacteristics​(java.lang.String name, int radius)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getName()  
    int getRadius()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getRadius

      public int getRadius()
      Returns:
      the influence radius of the given component (0,1,2,..)
    • getName

      public java.lang.String getName()
      Returns:
      the name of the component
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object