Package com.semedy.reasoner.api.builtin
Class SensorBuiltinSingleValue
java.lang.Object
com.semedy.reasoner.api.builtin.SensorBuiltin
com.semedy.reasoner.api.builtin.SensorBuiltinSingleValue
- All Implemented Interfaces:
Builtin
- Direct Known Subclasses:
ListenToPortSingleValue
A sensor builtin feeds events asynchroniously into the reasoner.
Used for complex event processing.
Used for complex event processing.
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidreceiveEncodedEvent(Object[] tuple) receives an event with already coded values (longs)
retracts the previous event
triggers reasoning with this new infovoidreceiveEvent(Object[] tuple) receives an event from an external system/sensor and
retracts the previous event
triggers reasoning with this new infoMethods inherited from class com.semedy.reasoner.api.builtin.SensorBuiltin
addReceiver, cloneBuiltin, evaluationFinished, getArgumentDescriptions, getArity, getDescription, getName, getType, getWeight, init, isEvaluable, isInternal, objectGeneratingArguments, readsSymbolTable, retractEncodedEvent, retractEvent, retractEvents, setSemaphore, setSymbolTable, writesSymbolTableMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.semedy.reasoner.api.builtin.Builtin
clear, setProperties
-
Constructor Details
-
SensorBuiltinSingleValue
public SensorBuiltinSingleValue()
-
-
Method Details
-
receiveEvent
public void receiveEvent(Object[] tuple) throws SemReasonerException, InterruptedException, IOException receives an event from an external system/sensor and
retracts the previous event
triggers reasoning with this new info- Overrides:
receiveEventin classSensorBuiltin- Parameters:
tuple-- Throws:
SymboltableExceptionReasoningExceptionInterruptedExceptionIOExceptionSymboltableExceptionReasoningExceptionSemReasonerException
-
receiveEncodedEvent
public void receiveEncodedEvent(Object[] tuple) throws InterruptedException, IOException, SemReasonerException receives an event with already coded values (longs)
retracts the previous event
triggers reasoning with this new info- Overrides:
receiveEncodedEventin classSensorBuiltin- Parameters:
tuple- (array of Long)- Throws:
InterruptedExceptionIOExceptionSemReasonerException
-