public interface IlrDTActionSet extends DTActionSet, IlrDTStatement
IlrDTModel, all action sets have a parent partition
item.
In a decision table, an action set contains one action for each action definition. The order
of the actions is also constrained by the order of the action definitions.
In a decision tree, there are no constraints on the number of actions contained, or their order, but there
can be at most one action for each action definition.
See IlrDTModel.isActionAddedAutomatically() to know if actions are constrained or not.
In a table representation of an IlrDTModel,
an IlrDTActionSet is not represented, but you can consider it as the
representation of a rule.
In a tree representation of an IlrDTModel,
an IlrDTActionSet is represented as a leaf node containing actions.
Methods that add and remove partition actions must not be called directly. The action set is
automatically managed by the model when using IlrDTModel.addAction(ilog.rules.dt.model.IlrDTActionSet, int, ilog.rules.dt.model.IlrDTActionDefinition, ilog.rules.dt.model.expression.IlrDTExpression),
IlrDTModel.addActionDefinition(int, ilog.rules.dt.model.IlrDTActionDefinition) and IlrDTModel.removeActionDefinition(ilog.rules.dt.model.IlrDTActionDefinition).
IlrDTActionDefinition,
IlrDTAction| Modifier and Type | Method and Description |
|---|---|
IlrDTAction |
getAction(IlrDTActionDefinition definition)
Returns the action related to the given action definition.
|
IlrDTModel |
getDTModel()
Returns the
IlrDTModel containing the action set. |
IlrDTAction |
getSetAction(int index)
Returns the action number index of the action set.
|
int |
getSetActionCount()
Returns the number of actions contained by the action set.
|
int |
indexOfSetAction(IlrDTAction action)
Returns the index of the action in the action set.
|
getActionForDefinition, getActionList, getExecutableActionListgetChildren, getParentPartitionItemgetParentConditionresetgetModelIlrDTModel getDTModel()
IlrDTModel containing the action set.getDTModel in interface IlrDTModelElementIlrDTModel containing the action set.IlrDTAction getAction(IlrDTActionDefinition definition)
definition - The action definition related to the returned action.int getSetActionCount()
IlrDTAction getSetAction(int index)
index - Index of the action required.int indexOfSetAction(IlrDTAction action)
action - The action contained by the action set.© Copyright IBM Corp. 1987, 2017