visidia.graph
Class Sensor

java.lang.Object
  extended by visidia.misc.property.PropertyTable
      extended by visidia.graph.Vertex
          extended by visidia.graph.Sensor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Sensor
extends Vertex

This class manages a sensor as a vertex belonging to a graph G1, and moving along edges of a graph G2.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class visidia.graph.Vertex
edges, neighbors
 
Constructor Summary
Sensor(int id)
          Instantiates a new sensor.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of this vertex (shallow copy).
 SensorMover getSensorMover()
          Gets the sensor mover.
 SupportVertex getSupportVertex()
          Gets the support vertex.
 void resetProperties()
          Reset properties.
 java.lang.Object setProperty(VisidiaProperty property)
          Sets a property.
 void setSensorMover(java.lang.String name)
          Sets the sensor mover.
 void setSupportVertex(SupportVertex supportVertex)
          Sets the support vertex.
 
Methods inherited from class visidia.graph.Vertex
degree, getDoorTo, getEdge, getEdges, getId, getLabel, getNeighborByDoor, getNeighbors, isSwitchedOn, linkTo, merge, removeIncidentEdges, setId, setLabel, setSwitchedOn, unlink
 
Methods inherited from class visidia.misc.property.PropertyTable
containsElement, entrySet, getLockOwner, getPropertyKeys, getVisidiaProperty, isPersistentProperty, locked, lockProperties, removeProperty, setProperties, setVisidiaProperty, unlockProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sensor

public Sensor(int id)
Instantiates a new sensor.

Parameters:
id - the id
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Vertex
Returns a clone of this vertex (shallow copy).

Overrides:
clone in class Vertex
Returns:
a clone of this vertex
See Also:
Object.clone()

getSupportVertex

public SupportVertex getSupportVertex()
Gets the support vertex.

Returns:
the support vertex

setSupportVertex

public void setSupportVertex(SupportVertex supportVertex)
Sets the support vertex.

Parameters:
supportVertex - the new support vertex

resetProperties

public void resetProperties()
Reset properties.

Overrides:
resetProperties in class Vertex

setProperty

public java.lang.Object setProperty(VisidiaProperty property)
Description copied from class: Vertex
Sets a property.

Overrides:
setProperty in class Vertex
Parameters:
property - the property
Returns:
the previous property value of the specified key in this hashtable, or null if it did not have one.

getSensorMover

public SensorMover getSensorMover()
Gets the sensor mover.

Returns:
the sensor mover

setSensorMover

public void setSensorMover(java.lang.String name)
Sets the sensor mover.

Parameters:
name - the name