modelling
Class MovingAgent.Errer

java.lang.Object
  extended bysema.Agent.Action
      extended bymodelling.MovingAgent.Errer
Enclosing class:
MovingAgent

protected class MovingAgent.Errer
extends Agent.Action

A default action to errate on the map without verification of the collisions with other elements.


Constructor Summary
MovingAgent.Errer()
           
MovingAgent.Errer(double t)
           
 
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
 

Constructor Detail

MovingAgent.Errer

public MovingAgent.Errer()

MovingAgent.Errer

public MovingAgent.Errer(double t)
Method Detail

step

public float step()
Description copied from class: Agent.Action
Body of the action. This is the main code to execute. The value returned is the time (in simulated units) to wait before the next call to the body. A negative value means that the action must end. The main idea of this function is that its execution is intended to be spread on a time that should be coherent with the simulation.

Typically, 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.

Overrides:
step in class Agent.Action