|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IExpressionEngine
Expression engine management class. Handles complex tree of nodes, and then uses binary decision diagram execution engine to reduce, apply, restrict, and satisfy the inferred boolean algebraic model down to individual action results by action type. There's a list of toplevel nodes. Only toplevel nodes have actions, for simplicity rather than as a requirement.
Method Summary | |
---|---|
int |
Execute(int nActionType,
com.plumtree.openfoundation.util.XPHashtable objUserEnvironment,
com.plumtree.openfoundation.util.XPStringBuilder sbDebugText)
Executes tree of conditional expression nodes and returns a list of resulting actions, one expression of each unique action type, no more than one of each type. |
IConditionServerType |
GetConditionTypeObject(int nCondTypeID)
Gets the condition type object specified by nCondTypeID |
com.plumtree.openfoundation.util.XPArrayList |
GetExpressionList(int nActionType)
Gets all the expressions whose action matches that of the action type given. |
void |
LoadConditionTypes(com.plumtree.openfoundation.util.XPHashtable objConditionTypes)
Dynamically discovered condition types need to be passed to the expression engine. |
void |
LoadExpressions()
Loads the expressions from the database while constructing the expressions' order of execution for all action types. |
com.plumtree.openfoundation.util.XPArrayList |
LoadExpressionsLite(int nActionType)
Loads the expressions from the database while constructing the expressions' order of execution for the specified action type. |
void |
ReorderExpressions(int nActionType,
com.plumtree.openfoundation.util.XPArrayList xpExpressionsOrder)
Re-order the espression list. |
Method Detail |
---|
void LoadConditionTypes(com.plumtree.openfoundation.util.XPHashtable objConditionTypes)
objConditionTypes
- - the list of dynamically discovered
condition typesvoid ReorderExpressions(int nActionType, com.plumtree.openfoundation.util.XPArrayList xpExpressionsOrder)
nActionType
- - action type of the expression list to be reorderedxpExpressionsOrder
- - the new order of the expressionscom.plumtree.openfoundation.util.XPArrayList GetExpressionList(int nActionType)
nActionType
- - the action type of the list of expressions wanted
IConditionServerType GetConditionTypeObject(int nCondTypeID)
nCondTypeID
- - ID of the condition type object wanted
int Execute(int nActionType, com.plumtree.openfoundation.util.XPHashtable objUserEnvironment, com.plumtree.openfoundation.util.XPStringBuilder sbDebugText)
nActionType
- - the action type to be evaluatedptInternalSession
- - internalsession to use to create expression info objectsobjUserEnvironment
- - current environment of values to be compared againstsbDebugText
- - StringBuilder that will keep track of the engine's execution path;
will be null if debug mode is turned off
void LoadExpressions()
com.plumtree.openfoundation.util.XPArrayList LoadExpressionsLite(int nActionType)
actionType
- - the action type of the expressions to be loaded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |