visidia.simulation.process.algorithm
Class SensorSyncAlgorithm

java.lang.Object
  extended by visidia.simulation.process.algorithm.Algorithm
      extended by visidia.simulation.process.algorithm.SynchronousAlgorithm
          extended by visidia.simulation.process.algorithm.SensorSyncAlgorithm
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Runnable

public abstract class SensorSyncAlgorithm
extends SynchronousAlgorithm

This is the abstract base class representing a synchronous algorithm for sensors in visidia. It is the API to be used to implement new synchronous algorithms for sensors (extending SensorSyncAlgorithm class).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class visidia.simulation.process.algorithm.Algorithm
proc
 
Constructor Summary
SensorSyncAlgorithm()
           
 
Method Summary
 void move(int sensorId)
          Moves a sensor to a support vertex chosen by the mover.
 void moveAfterEnd(int sensorId)
          Moves a sensor after algorithm end.
 
Methods inherited from class visidia.simulation.process.algorithm.SynchronousAlgorithm
anyMsg, existMessage, getNextMessage, getPulse, nextPulse, receive, sendTo
 
Methods inherited from class visidia.simulation.process.algorithm.Algorithm
clone, getArity, getDescription, getEdgeProperty, getId, getMessageTypeList, getNetSize, getOrientedDoors, getProperty, init, isIncomingDoor, isOutgoingDoor, putProperty, putProperty, receiveFrom, receiveFrom, run, sendAll, setDoorState, setEdgeProperty, setMessageProcess
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SensorSyncAlgorithm

public SensorSyncAlgorithm()
Method Detail

move

public final void move(int sensorId)
Moves a sensor to a support vertex chosen by the mover.

Parameters:
sensorId - the sensor id

moveAfterEnd

public final void moveAfterEnd(int sensorId)
Moves a sensor after algorithm end.

Parameters:
sensorId - the sensor id