|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsema.Agent.Action
modelling.GrowingAgent.Growing
Action of growing. Works by steps of growing by 1.1;
| Field Summary | |
float |
reachableSize
|
float |
timeToGrow
|
| Constructor Summary | |
GrowingAgent.Growing(float reachableSize,
float timeToGrow)
|
|
| Method Summary | |
float |
getSize()
Returns the current size. |
protected boolean |
rescaleSize(float a)
Fonction of growing. |
protected 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 |
public final float reachableSize
public final float timeToGrow
| Constructor Detail |
public GrowingAgent.Growing(float reachableSize,
float timeToGrow)
| Method Detail |
public float getSize()
protected boolean rescaleSize(float a)
protected 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 | ||||||||||