|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.simulation.process.SensorMover
public abstract class SensorMover
Abstract class providing different moving types for the sensors. You should subclass this class to create your own style of move.
Constructor Summary | |
---|---|
SensorMover()
Instantiates a new sensor mover. |
Method Summary | |
---|---|
abstract SupportVertex |
findWay(Sensor sensor)
Returns the ID of the vertex neighbor to which the sensor will go. |
void |
move(Sensor sensor)
Moves the sensor to the next vertex using the sensor's local mover. |
void |
move(Sensor sensor,
SupportVertex vertexTo)
Moves the sensor to a specified vertex neighbor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SensorMover()
Method Detail |
---|
public void move(Sensor sensor) throws java.lang.InterruptedException, MoveException
sensor
- the sensor
java.lang.InterruptedException
- the interrupted exception
MoveException
- the move exceptionpublic final void move(Sensor sensor, SupportVertex vertexTo) throws java.lang.InterruptedException
sensor
- the sensorvertexTo
- the vertex to
java.lang.InterruptedException
- the interrupted exceptionpublic abstract SupportVertex findWay(Sensor sensor) throws MoveException
sensor
- the sensor
MoveException
- the move exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |