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.


Method Summary
 void edgeAdded(Vertex origin, Vertex destination)
          Edge added.
 void edgeRemoved(Vertex origin, Vertex destination)
          Edge removed.
 void sensorMoved(int sensorId, SupportVertex origin, SupportVertex destination, VisidiaEvent event)
          Sensor moved.
 void sensorNumberDisplayed(boolean display)
          Sensor number displayed.
 void sensorNumberSet(SupportVertex supportVertex)
          Sensor number set.
 
Methods inherited from interface visidia.simulation.command.CommandListener
agentDead, agentMoved, edgePropertyChanged, edgeStateChanged, messageSent, nodePropertyChanged, pulseChanged, simulationTerminated
 

Method Detail

sensorMoved

void sensorMoved(int sensorId,
                 SupportVertex origin,
                 SupportVertex destination,
                 VisidiaEvent event)
Sensor moved.

Parameters:
sensorId - the sensor id
origin - the origin
destination - the destination
event - the event

edgeAdded

void edgeAdded(Vertex origin,
               Vertex destination)
Edge added.

Parameters:
origin - the origin
destination - the destination

edgeRemoved

void edgeRemoved(Vertex origin,
                 Vertex destination)
Edge removed.

Parameters:
origin - the origin
destination - 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