|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsema.Agent.Action
modelling.MovingAgent.MoveTo
Moves to the given point.
| Field Summary | |
protected float |
a
|
protected float |
radius
|
protected int |
successiveFailures
|
protected float |
x
|
protected float |
y
|
| Constructor Summary | |
MovingAgent.MoveTo(float x,
float y,
float radius)
|
|
| Method Summary | |
float |
step()
Body of the action. |
| Methods inherited from class sema.Agent.Action |
close, firstStep, hasBegun, isDisabled, isPaused, pause, pause, resume, resumedStep, start, start, stop, whenEnd, whenPaused, whenRefused, whenStartInPause, whenStopped |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected float a
protected float x
protected float y
protected float radius
protected int successiveFailures
| Constructor Detail |
public MovingAgent.MoveTo(float x,
float y,
float radius)
| Method Detail |
public float step()
Agent.ActionTypically, a moving agent that is walking would make a step towards a direction then another, and theses steps would be differents calls to step(). Internal variables should be stocked in the action to allow a good step by step execution.
step in class Agent.Action
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||