|
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.engine.IlrRule
public class IlrRule
Instances of the IlrRule
class are rules in a ruleset.
Rules are created using the parsing methods of IlrRuleset
and are then exhibited by the ruleset.
Method Summary | |
---|---|
String |
getFormalComment()
Returns the formal comment associated with the rule as a string. |
String |
getName()
Returns the fully qualified name of the rule. |
IlrPackage |
getPackage()
Returns the package in which the rule is defined. |
String |
getPacketName()
Deprecated. |
IlrPropertyList |
getProperties()
Gets the properties of this rule. |
String |
getShortName()
Returns the short name of the rule. |
boolean |
hasMetadata()
Tests if a rule has metadata. |
IlrRuleFactory |
makeFactory()
Builds a factory object that represents this rule. |
IlrRuleFactory |
makeFactory(IlrPackageFactory pkgF)
Builds a factory object to represent this rule. |
void |
removeMetadata()
Removes the rule's metadata. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean hasMetadata()
Tests if a rule has metadata.
true
if the rule has metadata (by default). It
returns false
if the rule's metadata has been removed.public void removeMetadata()
Removes the rule's metadata. Removing a rule's metadata reduces its memory footprint. In some situations, once a rule has been consumed, its metadata is no longer useful and can be removed. A rule is consumed when the first rule engine making use of the rule has been executed, in other words, the runtime objects associated with the rule have been created. However, a rule without metadata cannot be dynamically selected in the sequential mode, it cannot be dynamically compiled and it cannot be used in static analysis.
Warning:Use this method with caution.
public final String getPacketName()
Returns the packet name of the rule or null
if the rule
does not have a packet attribute.
public final String getName()
Returns the fully qualified name of the rule.
public String getShortName()
Returns the short name of the rule.
public final String getFormalComment()
Returns the formal comment associated with the rule as a string.
If the rule does not have a formal comment null
is
returned.
public final IlrPropertyList getProperties()
Gets the properties of this rule.
public final IlrRuleFactory makeFactory()
IlrTool
method
public final IlrRuleFactory makeFactory(IlrPackageFactory pkgF)
Builds a factory object to represent this rule.
pkgF
- An IlrRulesetFactory
.
public IlrPackage getPackage()
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |