public interface Sensor
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Get the name of the sensor.
|
java.lang.Boolean |
isImmutable()
Check if the sensor is immutable.
|
java.lang.Boolean |
isInUse()
Check if the sensor is in use.
|
EsperEventContainer |
receive(java.lang.Object object)
Objects subscribed to the sensor use this method to acquire the read
results.
|
void |
send(ReadCycle cycle)
Send sensor results to this sensor.
|
void |
sendEvent(java.lang.Object event)
Send a non ReadCycle event to esper.
|
java.lang.String getName()
java.lang.Boolean isImmutable()
java.lang.Boolean isInUse()
EsperEventContainer receive(java.lang.Object object) throws NotSubscribedException
reads
- NotSubscribedException
void send(ReadCycle cycle)
cycle
- void sendEvent(java.lang.Object event)
event
-