|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrRuleFactory
public class IlrRuleFactory
A rule definition of the rule language.
Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short-term storage or RMI between applications running the same version of IBM Decision Server.
Field Summary | |
---|---|
String |
formalComment
The formal comment of the rule. |
String |
name
The fully qualified name of the rule. |
String |
packetName
Deprecated. |
IlrValue |
priority
The priority value of the rule. |
Constructor Summary | |
---|---|
IlrRuleFactory(IlrReflect reflect,
IlrPackageFactory pkg,
String name)
Constructs a rule factory using a reflect and a rule name. |
|
IlrRuleFactory(IlrReflect reflect,
String definitionName)
Deprecated. Use instead IlrRuleFactory(IlrReflect reflect, IlrPackageFactory pkg, String definitionName) |
Method Summary | |
---|---|
void |
addCondition(IlrCondition cond)
Adds a condition to the rule. |
void |
addElseStatement(IlrStatement statement)
Appends an action to the rule's else part. |
void |
addStatement(IlrStatement statement)
Adds an action to the rule. |
Enumeration |
enumerateConditions()
Gets an enumeration to visit all the conditions of the rule. |
Enumeration |
enumerateElseStatements()
Gets an enumeration to visit all the actions of the rule's else part. |
Enumeration |
enumerateStatements()
Gets an enumeration to visit all the actions of the rule. |
int |
getConditionCount()
Gets the number of conditions in the rule. |
IlrCondition[] |
getConditions()
Gets the conditions of the rule. |
int |
getElseStatementCount()
Gets the number of actions in the else part. |
IlrStatement[] |
getElseStatements()
Gets the actions of the rule's else part. |
IlrPackageFactory |
getPackage()
Returns the package in which the rule is defined. |
IlrPropertyList |
getProperties()
Gets the property list of this rule factory. |
String |
getShortName()
Gets the short name of the rule. |
int |
getStatementCount()
Gets the number of actions. |
IlrStatement[] |
getStatements()
Gets the actions of the rule. |
void |
removeCondition(IlrCondition cond)
Removes a condition from the rule. |
void |
removeElseStatement(IlrStatement statement)
Removes an action from the rule's else part. |
void |
removeStatement(IlrStatement statement)
Removes an action from the rule. |
void |
setConditions(IlrCondition[] conditions)
Sets the conditions of the rule. |
void |
setElseStatements(IlrStatement[] statements)
Sets the actions of the rule's else part. |
void |
setStatements(IlrStatement[] statements)
Set the actions of the rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String name
public String packetName
public String formalComment
public IlrValue priority
Constructor Detail |
---|
public IlrRuleFactory(IlrReflect reflect, String definitionName)
IlrRuleFactory(IlrReflect reflect, IlrPackageFactory pkg, String definitionName)
reflect
- The reflect object of this rule factory.definitionName
- The name of the rule.public IlrRuleFactory(IlrReflect reflect, IlrPackageFactory pkg, String name)
null
,
the rule is considered to belong to the default package.
It is attached to the reflect object passed as an argument.
The priority is set to have the default priority value.
Both the condition and the action parts are empty.
reflect
- The reflect object of this rule factory.pkg
- The package to which the rule belongs.name
- The name of the rule.Method Detail |
---|
public final IlrPropertyList getProperties()
public final void addCondition(IlrCondition cond)
cond
- The condition to be added.public final void removeCondition(IlrCondition cond)
cond
- The condition to be removed.public final int getConditionCount()
public final IlrCondition[] getConditions()
public final void setConditions(IlrCondition[] conditions)
conditions
- The conditions to be set.public final Enumeration enumerateConditions()
public final void addStatement(IlrStatement statement)
statement
- The action to be added.public final void removeStatement(IlrStatement statement)
statement
- The action to be removed.public final int getStatementCount()
public final IlrStatement[] getStatements()
public final Enumeration enumerateStatements()
public final void setStatements(IlrStatement[] statements)
statements
- The actions to be set.public final void addElseStatement(IlrStatement statement)
else
part.
statement
- The action to be appended.public final void removeElseStatement(IlrStatement statement)
else
part.
statement
- The action to be removed.public final int getElseStatementCount()
else
part.
This method returns 0 when the else
part
does not exist or is empty.
else
part.public final IlrStatement[] getElseStatements()
else
part.
public final Enumeration enumerateElseStatements()
else
part.
else
part.public final void setElseStatements(IlrStatement[] statements)
else
part.
statements
- The actions to be set.public IlrPackageFactory getPackage()
public String getShortName()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |