public interface Engine extends Observable, EngineServices
Engine interface to parametrize and run an Engine
instance.
You create an Engine using an EngineDefinition object.EngineDefinition| Modifier and Type | Method and Description |
|---|---|
EngineInput |
createInput()
Creates an
EngineInput object for this Engine. |
EngineInput |
createInput(EngineData data)
Creates an
EngineInput object for this Engine. |
EngineOutput |
execute(EngineInput input)
Executes this
Engine using the input then returns the output. |
EngineOutput |
execute(java.util.Map<java.lang.String,java.lang.Object> input)
Executes this
Engine using a Map of associated
strings and objects, then returns the output. |
EngineDefinition |
getDefinition()
Returns the
EngineDefinition. |
EngineState |
getState()
Return the current state of this
Engine instance. |
void |
note(java.lang.String note)
Adds a note to this
Engine. |
void |
reset()
Resets the state of an
Engine. |
addObserver, addObserver, getAllObservers, getSupportedObserverClasses, removeAllObservers, removeObserver, removeObservergetNumberOfServices, getService, getServiceByName, getServiceClassesEngineOutput execute(java.util.Map<java.lang.String,java.lang.Object> input) throws EngineExecutionException, EngineInvalidStateException, java.lang.IllegalArgumentException
Engine using a Map of associated
strings and objects, then returns the output.EngineExecutionException - if there is a problem running this engine.EngineInvalidStateException - if this engine is not in the correct state.java.lang.IllegalArgumentException - if input cannot be used by this engine.input - The input.EngineOutput execute(EngineInput input) throws EngineExecutionException, EngineInvalidStateException, java.lang.IllegalArgumentException
Engine using the input then returns the output.EngineExecutionException - if there is a problem running this engine.EngineInvalidStateException - if this engine is not in the correct state.java.lang.IllegalArgumentException - if input cannot be used by this engine.input - The input.EngineDefinition getDefinition()
EngineDefinition.EngineDefinition.void reset()
Engine. When called on a SteppingRuleEngine that is stepping through code, it also resets its working memory and its agenda.EngineInput createInput()
EngineInput object for this Engine.
Use the object returned to parametrize Engine execution.EngineInput createInput(EngineData data)
EngineInput object for this Engine.
Use the object returned to parametrize Engine execution.data - The EngineData that will be accessible using the input
returned.EngineInput.getData()void note(java.lang.String note)
Engine.
This note is sent to the NoteObserver objects.note - The note to add.NoteObserverEngineState getState()
Engine instance.Engine.© Copyright IBM Corp. 1987, 2017