|
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.IlrBaseStatement ilog.rules.factory.IlrAction ilog.rules.factory.IlrAssertAction
public class IlrAssertAction
This class represents an insert
action 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 |
---|
Fields inherited from class ilog.rules.factory.IlrAction |
---|
flag, statements, value |
Constructor Summary | |
---|---|
IlrAssertAction(IlrValue object)
Constructs an assert action to represent an
assertion of the object passed as an argument. |
|
IlrAssertAction(IlrValue object,
IlrStatement[] statements)
Constructs an assert action to represent an
assertion of the object passed as an argument. |
Method Summary | |
---|---|
void |
addStatement(IlrStatement statement)
Adds a statement to this action. |
Enumeration |
enumerateStatements()
Returns an enumeration to visit all the statements of this action. |
Object |
exploreStatement(IlrFactoryExplorer explorer)
Explores the action and returns an object as a result. |
IlrValue |
getObject()
Gets the asserted object. |
int |
getStatementCount()
Gets the number of statements in this action. |
IlrStatement[] |
getStatements()
Gets the statements in this action. |
IlrValue |
getTimeExpression()
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
boolean |
isAssertEvent()
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
boolean |
isLogical()
Deprecated. As of IBM Decision Server 8.0.1, truth maintenance system is deprecated |
void |
removeStatement(IlrStatement statement)
Removes a statement from the statement list of this action. |
void |
setAssertEvent(boolean assertEvent)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
void |
setAssertEvent(IlrValue timeExpression)
Deprecated. As of IBM Decision Server 7.5, event processing is deprecated. |
void |
setLogical(boolean flag)
Deprecated. As of IBM Decision Server 8.0.1, truth maintenance system is deprecated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrAssertAction(IlrValue object)
assert
action to represent an
assertion of the object passed as an argument. The constructed
assertion is not logical. It corresponds to an assert
action without the event
keyword.
object
- The object to be asserted.public IlrAssertAction(IlrValue object, IlrStatement[] statements)
assert
action to represent an
assertion of the object passed as an argument. The constructed
assertion is not logical. It corresponds to an assert
action without the event
keyword. The assert
action is
initialized with the statement block passed as an argument.
object
- The object to be asserted.statements
- The statement block.Method Detail |
---|
public final IlrValue getObject()
public final boolean isLogical()
true
if the assertion is marked as logical,
and false
otherwise.public final void setLogical(boolean flag)
flag
- true
to mark the
assertion as logical, and false
otherwise.public final boolean isAssertEvent()
assert
action with the event
keyword.
true
if the assertion has the event
keyword, and false
otherwise.public final IlrValue getTimeExpression()
assert
action with the
event
keyword and an explicit time expression.
Otherwise, it returns null
.
assert event
action, or null
.public final void setAssertEvent(boolean assertEvent)
assert
action with the event
keyword (with no explicit time
expression) or not (the explicit time expression previously set, if
any, is then disregarded).
assertEvent
- true
to mark the
assertion as having the event
keyword, and false
otherwise.public final void setAssertEvent(IlrValue timeExpression)
assert
action with the event
keyword with an explicit time
expression.
timeExpression
- The explicit time expression
following the event
keyword.public final void addStatement(IlrStatement statement)
statement
- The statement to be added.public final void removeStatement(IlrStatement statement)
statement
- The statement to be removed.public final int getStatementCount()
public final IlrStatement[] getStatements()
public final Enumeration enumerateStatements()
public Object exploreStatement(IlrFactoryExplorer explorer)
explorer
- A factory explorer.
null
if the method does not return a value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |