jasi.sim.user.model.sense
Interface Sensable

All Superinterfaces:
java.lang.Comparable<Element>, Element, Movable, java.io.Serializable, SimObject

public interface Sensable
extends Movable

Interface for a passive element of the sensor model. These are elements which can be sensed by sensors.


Field Summary
 
Fields inherited from interface jasi.sim.basic.element.Element
COMPARATOR
 
Method Summary
 void addSensingElement(Sensing element)
          Add that sensing element to the list of sensing elements.
 void removeSensingElement(Sensing element)
          Remove that sensing element from the list of sensing elements.
 java.util.Collection<Sensing> sensingElements()
          Get the collection of elements that are sensing this sensed element.
 
Methods inherited from interface jasi.sim.user.model.move.Movable
moving, start, stop, timeToNextLocation, updateMove
 
Methods inherited from interface jasi.sim.basic.element.Element
delete, getKey, isDeleted, registered, setKey
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface jasi.sim.basic.id.SimObject
getId, setId
 

Method Detail

sensingElements

java.util.Collection<Sensing> sensingElements()
Get the collection of elements that are sensing this sensed element.

Returns:
The collection of sensing elements.

addSensingElement

void addSensingElement(Sensing element)
Add that sensing element to the list of sensing elements.

Parameters:
element - That sensing element.

removeSensingElement

void removeSensingElement(Sensing element)
Remove that sensing element from the list of sensing elements.

Parameters:
element - That sensing element.