yab.agent
Class HumanoidAgent
java.lang.Object
|
+--java.lang.Thread
|
+--yab.agent.Agent
|
+--yab.agent.HumanoidAgent
- All Implemented Interfaces:
- Constants, Runnable
- Direct Known Subclasses:
- AbstractCivilianAgent, PlatoonAgent
- public abstract class HumanoidAgent
- extends Agent
Method Summary |
protected Route |
getRoute(Collection destinations)
This method returns the minimum cost route reaching one of
destinations in consideration for a blockade
located at the midpoint of a road where the controlled object
is. |
protected int |
hearingLimit()
|
protected void |
move(Collection destinations)
|
protected void |
move(int[] routePlan)
|
protected void |
move(MotionlessObject destination)
|
protected void |
move(Route routePlan)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
HumanoidAgent
protected HumanoidAgent(int agentType,
InetAddress address,
int port)
hearingLimit
protected int hearingLimit()
- Specified by:
hearingLimit
in class Agent
move
protected void move(MotionlessObject destination)
throws Agent.ActionCommandException
Agent.ActionCommandException
move
protected void move(Collection destinations)
throws Agent.ActionCommandException
Agent.ActionCommandException
move
protected void move(Route routePlan)
throws Agent.ActionCommandException
Agent.ActionCommandException
move
protected void move(int[] routePlan)
throws Agent.ActionCommandException
Agent.ActionCommandException
getRoute
protected Route getRoute(Collection destinations)
- This method returns the minimum cost route reaching one of
destinations
in consideration for a blockade
located at the midpoint of a road where the controlled object
is.
This method routes, estimating cost of a route based upon its
passability:
- if the agent has seen a road and the road is passable,
cost for reaching the road is low
- if the agent has seen a road and the road is not
passable, the cost is high
- if the agent has not seen a road but the road may be
passable, the cost is the middle
- See Also:
cost