jasi.sim.user.model.move
Interface Movable

All Superinterfaces:
java.lang.Comparable<Element>, Element, java.io.Serializable, SimObject
All Known Subinterfaces:
Sensable, Sensing
All Known Implementing Classes:
SimpleMovingElement, SimpleMovingElementHandler

public interface Movable
extends Element

The interface for moving simulation elements.


Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Method Summary
 boolean moving()
          Request, if the actual movement has been started.
 void start()
          Start the movement.
 void stop()
          Stop the movement.
 Time timeToNextLocation()
          Request time for the next update of movement.
 void updateMove()
          Update the actual movement.
 
Methods inherited from interface jasi.sim.basic.element.Element
delete, getKey, isDeleted, registered, setKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface jasi.sim.basic.id.SimObject
getId, setId
 

Method Detail

timeToNextLocation

Time timeToNextLocation()
Request time for the next update of movement. This will be the time which is required to arrive at the target of the actual move.

Returns:
The next update time.

updateMove

void updateMove()
Update the actual movement. This method will change the target of movement to the next location in its track.


start

void start()
Start the movement.


stop

void stop()
Stop the movement.


moving

boolean moving()
Request, if the actual movement has been started.

Returns:
True, if movement has been started; otherwise false, when stopped.