public class IlrAssertAction extends IlrAction
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.
flag, statements, value| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
void |
addStatement(IlrStatement statement)
Adds a statement to this action.
|
java.util.Enumeration |
enumerateStatements()
Returns an enumeration to visit all the statements of this action.
|
java.lang.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
|
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.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 java.util.Enumeration enumerateStatements()
public java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
explorer - A factory explorer.null
if the method does not return a value.© Copyright IBM Corp. 1987, 2017