public class AutoEngineInfo
extends java.lang.Object
AutoEngine
uses to evaluate
a single policy event.Modifier and Type | Field and Description |
---|---|
boolean |
alwaysTrue
True if the evaluation function is always true
|
boolean |
controlLoop
True if a control loop element
|
AutoOut |
effOutput
Actions to carry out if the evaluation is true.
|
protected AutoEngine |
engine
The engine that executes the info scripts
|
java.lang.Object |
evaluator |
java.lang.String |
eventID
Unique ID for the auto info object and related script event
|
protected AutoEngineInfo |
next |
protected AutoEngineInfo |
parent
Traversal to an executable element may be required
|
AutoIn |
senInput
Input evaluation conditions for the effector list to be selected
|
Constructor and Description |
---|
AutoEngineInfo(AutoEngine theEngine)
Create a new instance of AutoEngineInfo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Return true if this info object can be executed.
|
boolean |
createInfo(org.dcs.query_process.model.event.Script_Event eventElem,
org.dcs.query_process.model.Script_Model scriptModel,
ObjectsMap objectsMap)
Create the info object and convert the script descriptions into the appropriate
objects for executing the process event.
|
AutoOut |
getEffOutput()
Get the saved effector actions list, as
AutoEngineInfo objects. |
java.lang.Object |
getMethodReply()
Get the method reply.
|
boolean |
hasEffOutput()
Return true if an effector filter method list is added to this element.
|
protected static java.lang.Object |
parseToObject(org.dcs.query_process.model.Script_Element scriptElem,
org.dcs.query_process.model.Script_Model scriptModel)
Parse the value related to the script element into a Java object.
|
java.lang.String |
toString()
Create and return a string-based description of this AutoInfo object.
|
public boolean controlLoop
public boolean alwaysTrue
public java.lang.String eventID
public java.lang.Object evaluator
public AutoIn senInput
public AutoOut effOutput
protected AutoEngine engine
protected AutoEngineInfo parent
protected AutoEngineInfo next
public AutoEngineInfo(AutoEngine theEngine)
theEngine
- the engine that executes this info object.public boolean createInfo(org.dcs.query_process.model.event.Script_Event eventElem, org.dcs.query_process.model.Script_Model scriptModel, ObjectsMap objectsMap) throws java.lang.Exception
eventElem
- the process event element.scriptModel
- the whole script model, with access to all element types.objectsMap
- list of already created objects from script elements.java.lang.Exception
- any error.protected static java.lang.Object parseToObject(org.dcs.query_process.model.Script_Element scriptElem, org.dcs.query_process.model.Script_Model scriptModel) throws java.lang.Exception
scriptElem
- the element with the initial definition.scriptModel
- the whole script model, with access to all element types.java.lang.Exception
- any error.public boolean canExecute()
public java.lang.Object getMethodReply()
public boolean hasEffOutput()
public AutoOut getEffOutput()
AutoEngineInfo
objects.public java.lang.String toString()
toString
in class java.lang.Object