Class EntityCharacteristics

java.lang.Object
eu.su.mas.dedale.env.EntityCharacteristics
All Implemented Interfaces:
Serializable

public class EntityCharacteristics extends Object implements Serializable
This class contain, for each agent, all its (default) characteristics
Author:
hc
See Also:
  • Constructor Details

    • EntityCharacteristics

      public EntityCharacteristics(EntityType e)
    • EntityCharacteristics

      public EntityCharacteristics(String agentName, EntityType entityType, int diamondCapa, int goldCapa, int comReach, Location initialLocation, int detectionRadius, Set<dataStructures.tuple.Couple<LockElement.LockType,Integer>> expertise)
      Parameters:
      agentName - localName
      entityType - definesTheCaracteristics of the agent
      diamondCapa - Quantity of diamond it can carry
      goldCapa - Quantity of gold it can carry
      comReach - Maximal distance from which the agent can be reached
      initialLocation - null if random
      detectionRadius - maximal distance from which the presence of the agent can be detected (stench in the env)
      expertise - null is no lock
  • Method Details

    • getInitialLocation

      public Location getInitialLocation()
      Returns:
      null if no initial location enforced , locationId otherwise
    • getGoldCapacity

      public Integer getGoldCapacity()
    • getDiamondCapacity

      public Integer getDiamondCapacity()
    • getDetectionRadius

      public Integer getDetectionRadius()
    • getMyTreasureType

      public Observation getMyTreasureType()
    • setMyTreasureType

      public void setMyTreasureType(Observation o)
    • getBackPackCapacity

      public Integer getBackPackCapacity(Observation o)
    • getCommunicationReach

      public Integer getCommunicationReach()
    • getMyEntityType

      public EntityType getMyEntityType()
    • getExpertise

      public Set<dataStructures.tuple.Couple<LockElement.LockType,Integer>> getExpertise()
    • getAgentName

      public String getAgentName()
    • toString

      public String toString()
      Overrides:
      toString in class Object