Package eu.su.mas.dedale.env
Class EntityCharacteristics
java.lang.Object
eu.su.mas.dedale.env.EntityCharacteristics
- All Implemented Interfaces:
java.io.Serializable
public class EntityCharacteristics
extends java.lang.Object
implements java.io.Serializable
This class contain, for each agent, all its (default) characteristics
- Author:
- hc
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EntityCharacteristics(EntityType e)
EntityCharacteristics(java.lang.String agentName, EntityType entityType, int diamondCapa, int goldCapa, int comReach, Location initialLocation, int detectionRadius, java.util.Set<dataStructures.tuple.Couple<LockElement.LockType,java.lang.Integer>> expertise)
-
Method Summary
Modifier and Type Method Description java.lang.String
getAgentName()
java.lang.Integer
getBackPackCapacity(Observation o)
java.lang.Integer
getCommunicationReach()
java.lang.Integer
getDetectionRadius()
java.lang.Integer
getDiamondCapacity()
java.util.Set<dataStructures.tuple.Couple<LockElement.LockType,java.lang.Integer>>
getExpertise()
java.lang.Integer
getGoldCapacity()
Location
getInitialLocation()
EntityType
getMyEntityType()
Observation
getMyTreasureType()
void
setMyTreasureType(Observation o)
java.lang.String
toString()
-
Constructor Details
-
EntityCharacteristics
-
EntityCharacteristics
public EntityCharacteristics(java.lang.String agentName, EntityType entityType, int diamondCapa, int goldCapa, int comReach, Location initialLocation, int detectionRadius, java.util.Set<dataStructures.tuple.Couple<LockElement.LockType,java.lang.Integer>> expertise)- Parameters:
agentName
- localNameentityType
- definesTheCaracteristics of the agentdiamondCapa
- Quantity of diamond it can carrygoldCapa
- Quantity of gold it can carrycomReach
- Maximal distance from which the agent can be reachedinitialLocation
- null if randomdetectionRadius
- maximal distance from which the presence of the agent can be detected (stench in the env)expertise
- null is no lock
-
-
Method Details
-
getInitialLocation
- Returns:
- null if no initial location enforced , locationId otherwise
-
getGoldCapacity
public java.lang.Integer getGoldCapacity() -
getDiamondCapacity
public java.lang.Integer getDiamondCapacity() -
getDetectionRadius
public java.lang.Integer getDetectionRadius() -
getMyTreasureType
-
setMyTreasureType
-
getBackPackCapacity
-
getCommunicationReach
public java.lang.Integer getCommunicationReach() -
getMyEntityType
-
getExpertise
public java.util.Set<dataStructures.tuple.Couple<LockElement.LockType,java.lang.Integer>> getExpertise() -
getAgentName
public java.lang.String getAgentName() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-