|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Agent
Collection of useful information about an agent.
A get-prefix indicates that the return value of the method may change over time. All other methods return constant values.
| Method Summary | ||
|---|---|---|
TaskSet |
getTasks()
The tasks that the agent has accepted, but not yet picked up and delivered. |
|
int |
id()
A unique id in the range [0,numAgents). |
|
|
readProperty(java.lang.String paramName,
java.lang.Class<T> clazz,
T default_)
Reads an agent property from the agents.xml file and converts it to the requested type. |
|
java.util.List<Vehicle> |
vehicles()
The vehicles controlled by the agent |
|
| Methods inherited from interface logist.agent.AgentStatistics |
|---|
getTotalCost, getTotalDistance, getTotalDistanceUnits, getTotalProfit, getTotalReward, getTotalTasks, name |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
int id()
AuctionBehavior.auctionResult(Task,int,Long[])
java.util.List<Vehicle> vehicles()
TaskSet getTasks()
<T> T readProperty(java.lang.String paramName,
java.lang.Class<T> clazz,
T default_)
T - Type of the propertyparamName - Name of the propertyclazz - Type of the propertydefault_ - A default value, or null
java.lang.RuntimeException - (1) if the property does not have the correct type or (2) if
the property does not exist and the default value is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||