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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
receiveEncodedEvent
(Object[] tuple) receives an event with already coded values (longs)
retracts the previous event
triggers reasoning with this new infovoid
receiveEvent
(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, writesSymbolTable
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
receiveEvent
in classSensorBuiltin
- Parameters:
tuple
-- Throws:
SymboltableException
ReasoningException
InterruptedException
IOException
SymboltableException
ReasoningException
SemReasonerException
-
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:
receiveEncodedEvent
in classSensorBuiltin
- Parameters:
tuple
- (array of Long)- Throws:
InterruptedException
IOException
SemReasonerException
-