visidia.simulation.command
Interface SensorCommandListener
- All Superinterfaces:
- CommandListener, java.util.EventListener
public interface SensorCommandListener
- extends CommandListener
The listener interface for receiving command events relative to sensors.
The class that is interested in processing a sensorCommand
event implements this interface, and the object created
with that class is registered with a component using the
component's addCommandListener method. When
the command event occurs, that object's appropriate
method is invoked.
sensorMoved
void sensorMoved(int sensorId,
SupportVertex origin,
SupportVertex destination,
VisidiaEvent event)
- Sensor moved.
- Parameters:
sensorId
- the sensor idorigin
- the origindestination
- the destinationevent
- the event
edgeAdded
void edgeAdded(Vertex origin,
Vertex destination)
- Edge added.
- Parameters:
origin
- the origindestination
- the destination
edgeRemoved
void edgeRemoved(Vertex origin,
Vertex destination)
- Edge removed.
- Parameters:
origin
- the origindestination
- the destination
sensorNumberDisplayed
void sensorNumberDisplayed(boolean display)
- Sensor number displayed.
- Parameters:
display
- the display
sensorNumberSet
void sensorNumberSet(SupportVertex supportVertex)
- Sensor number set.
- Parameters:
supportVertex
- the support vertex