Rule Execution Server API

ilog.rules.factory
Class IlrTimeCondition

java.lang.Object
  extended by ilog.rules.factory.IlrCondition
      extended by ilog.rules.factory.IlrTimeCondition
All Implemented Interfaces:
Serializable

Deprecated. As of IBM Decision Server 7.5, event processing is deprecated.

@Deprecated
public class IlrTimeCondition
extends IlrCondition

This class is used to represent a wait condition of the rule language. A wait condition is also referred to as a watchdog.

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.

See Also:
Serialized Form

Constructor Summary
IlrTimeCondition(IlrReflect reflect, boolean logicalFlag)
          Deprecated. Constructs a wait condition.
 
Method Summary
 void addCondition(IlrClassCondition cond)
          Deprecated. Adds a condition at the end of the condition block of this time condition.
 IlrVariable bindObject(String name)
          Deprecated. Binds the current condition to a variable and returns the value of the bound object.
 Enumeration enumerateConditions()
          Deprecated. Gets an enumeration to visit the conditions in the block of the time condition.
 Object exploreCondition(IlrFactoryExplorer explorer)
          Deprecated. Explores this condition using a factory explorer and returns an object as a result.
 int getConditionCount()
          Deprecated. Gets the number of conditions in the block of this time condition.
 IlrClassCondition[] getConditions()
          Deprecated. Gets the conditions in the block of this time condition.
 IlrVariable getObjectBinding()
          Deprecated. Gets the object binding.
 IlrValue getTime()
          Deprecated. Gets the value for time expression.
 boolean isLogical()
          Deprecated. Tests if the watchdog is logical.
 boolean isTimeAbsolute()
          Deprecated. Checks whether the time expression refers to an absolute time.
 boolean isTimeSet()
          Deprecated. Checks whether a time expression has been set for this watchdog.
 void removeCondition(IlrClassCondition cond)
          Deprecated. Removes a condition from the condition block of this time condition.
 void setTime(boolean until, IlrValue time)
          Deprecated. Sets the value for the time expression, and specifies if the time is relative or absolute.
 void setTime(IlrValue time)
          Deprecated. Sets the value for the time expression.
 
Methods inherited from class ilog.rules.factory.IlrCondition
getClassName, getObject, getShortClassName, getXOMClassScope, isEventCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrTimeCondition

public IlrTimeCondition(IlrReflect reflect,
                        boolean logicalFlag)
Deprecated. 
Constructs a wait condition.

Parameters:
reflect - A reflect.
logicalFlag - Specifies if the watchdog is logical. true means that the watchdog is logical.
Method Detail

isLogical

public boolean isLogical()
Deprecated. 
Tests if the watchdog is logical.

Returns:
true if the watchdog is logical, and false if the watchdog is not logical.

getTime

public IlrValue getTime()
Deprecated. 
Gets the value for time expression.

Returns:
A value representing the time expression, or null if the watchdog has no time expression set.

setTime

public void setTime(IlrValue time)
Deprecated. 
Sets the value for the time expression. The time is considered relative as there is no until clause.

Parameters:
time - The time expression of the watchdog.

setTime

public void setTime(boolean until,
                    IlrValue time)
Deprecated. 
Sets the value for the time expression, and specifies if the time is relative or absolute.

Parameters:
until - Is true if the time is absolute (using until keyword), and false if the time is relative.
time - The time expression of the watchdog.

isTimeSet

public boolean isTimeSet()
Deprecated. 
Checks whether a time expression has been set for this watchdog.

Returns:
true if the time expression of the watchdog has been set.

isTimeAbsolute

public boolean isTimeAbsolute()
Deprecated. 
Checks whether the time expression refers to an absolute time. This is true when the until keyword is used.

Returns:
true if the time is absolute.

bindObject

public IlrVariable bindObject(String name)
Deprecated. 
Binds the current condition to a variable and returns the value of the bound object.

Parameters:
name - The name of the variable.
Returns:
A variable which represents the object binding.

getObjectBinding

public IlrVariable getObjectBinding()
Deprecated. 
Gets the object binding.

Returns:
A variable which represents the object binding.

addCondition

public void addCondition(IlrClassCondition cond)
Deprecated. 
Adds a condition at the end of the condition block of this time condition.

Parameters:
cond - The condition to be added.

removeCondition

public void removeCondition(IlrClassCondition cond)
Deprecated. 
Removes a condition from the condition block of this time condition.

Parameters:
cond - The condition to be removed.

getConditionCount

public int getConditionCount()
Deprecated. 
Gets the number of conditions in the block of this time condition.

Returns:
The number of conditions.

getConditions

public IlrClassCondition[] getConditions()
Deprecated. 
Gets the conditions in the block of this time condition.

Returns:
An array of conditions.

enumerateConditions

public Enumeration enumerateConditions()
Deprecated. 
Gets an enumeration to visit the conditions in the block of the time condition.

Returns:
An enumeration.

exploreCondition

public Object exploreCondition(IlrFactoryExplorer explorer)
Deprecated. 
Explores this condition using a factory explorer and returns an object as a result.

Specified by:
exploreCondition in class IlrCondition
Parameters:
explorer - The factory explorer.
Returns:
An object which represents the result of the exploration, or null if the method does not return a value.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013