|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBlocker
This describes an object that can block agents. An agent itself also implements this, as an agent can block other agents.
| Method Summary | |
|---|---|
boolean |
blocked()
Is this blocker currently blocked? |
String |
blockerDescription()
A textual description of this blocker for use in information windows and debugging |
double |
blockPointDistance(IAgent agent,
IXyz agentHead)
Return the distance to the point of blocking from the given agent "head" |
void |
doneBlocking(IAgent agent)
When an agent is no longer blocked by this blocker, pass the blocked agent to the blocker in case it wants to do something with it, for example, delete it from a list of remembered blocked agents. |
void |
nowBlocking(IAgent agent)
When an agent becomes blocked by this blocker, pass the blocked agent to the blocker in case it wants to remember it. |
| Method Detail |
|---|
String blockerDescription()
boolean blocked()
double blockPointDistance(IAgent agent,
IXyz agentHead)
void nowBlocking(IAgent agent)
void doneBlocking(IAgent agent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||