Rule Execution Server API

ilog.rules.res.session.ruleset
Class IlrBusinessExecutionTrace

java.lang.Object
  extended by ilog.rules.res.session.ruleset.IlrBusinessExecutionTrace
All Implemented Interfaces:
IlrExecutionTrace, Serializable

public class IlrBusinessExecutionTrace
extends Object
implements IlrExecutionTrace

IlrBusinessExecutionTrace is a wrapper for IlrExecutionTrace. This class adds convenience methods for the business names of tasks and rules.

Since:
7.0
See Also:
Serialized Form

Field Summary
protected  IlrExecutionTrace trace
           
 
Constructor Summary
IlrBusinessExecutionTrace(IlrExecutionTrace trace)
          Builds a new IlrBusinessExecutionTrace instance.
 
Method Summary
protected  void addRuleFiredBusinessNames(List<IlrExecutionEvent> executionEvents, List<String> firedRuleBusinessNames)
           
protected  void addTaskExecutedBusinessNames(List<IlrExecutionEvent> events, List<String> executedTaskBusinessNames)
           
 Set<String> getAllRuleBusinessNames()
          Returns the business names of all the rules in the ruleset.
 Set<String> getAllTaskBusinessNames()
          Returns the business names for all tasks in the ruleset.
 Set<String> getdRuleNotFiredBusinessNames()
          Returns the business names for the rules that have not been executed.
 Date getExecutionDate()
          Returns the execution date.
 Long getExecutionDuration()
          Returns the execution duration in milliseconds.
 List<IlrExecutionEvent> getExecutionEvents()
          Returns the list of executed rules and tasks.
 InetAddress getInetAddress()
          Returns the internet address.
 List<String> getRuleFiredBusinessNames()
          Returns the list of the business names for the rules fired.
 Map<String,IlrRuleInformation> getRules()
          Returns the ruleset rules by name.
 Set<IlrRuleInformation> getRulesNotFired()
          Returns the rule information for the rules that were not fired.
 Properties getSystemProperties()
          Returns the system properties of the execution environment.
 List<String> getTaskExecutedBusinessNames()
          Returns the list of the business names for the executed task.
 Set<String> getTaskNotExecutedBusinessNames()
          Returns the business names for the tasks that have not been executed.
 Map<String,IlrTaskInformation> getTasks()
          Returns the ruleset tasks by name.
 Set<IlrTaskInformation> getTasksNotExecuted()
          Returns the task information for the tasks that were not executed.
 Long getTotalRulesFired()
          Returns the number of rules fired.
 Long getTotalRulesNotFired()
          Returns the number of rules that have not fired.
 Long getTotalTasksExecuted()
          Returns the number of tasks executed.
 Long getTotalTasksNotExecuted()
          Returns the number of tasks not executed.
 Collection<Object> getWorkingMemory()
          Returns the working memory as a Collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trace

protected IlrExecutionTrace trace
Constructor Detail

IlrBusinessExecutionTrace

public IlrBusinessExecutionTrace(IlrExecutionTrace trace)
Builds a new IlrBusinessExecutionTrace instance.

Parameters:
trace - The execution trace to wrap in this object.
Method Detail

getTaskNotExecutedBusinessNames

public Set<String> getTaskNotExecutedBusinessNames()
Returns the business names for the tasks that have not been executed.

Returns:
A set of business names.

getdRuleNotFiredBusinessNames

public Set<String> getdRuleNotFiredBusinessNames()
Returns the business names for the rules that have not been executed.

Returns:
A set of business names.

getAllRuleBusinessNames

public Set<String> getAllRuleBusinessNames()
Returns the business names of all the rules in the ruleset.

Returns:
A set of business names.

getAllTaskBusinessNames

public Set<String> getAllTaskBusinessNames()
Returns the business names for all tasks in the ruleset.

Returns:
A set of business names.

getRuleFiredBusinessNames

public List<String> getRuleFiredBusinessNames()
Returns the list of the business names for the rules fired. This list is taken from the underlying IlrExecutionTrace object.

Returns:
The list of business names for the rules fired.

getTaskExecutedBusinessNames

public List<String> getTaskExecutedBusinessNames()
Returns the list of the business names for the executed task. This list is taken from the underlying IlrExecutionTrace object.

Returns:
The list of business names for the executed task.

addRuleFiredBusinessNames

protected void addRuleFiredBusinessNames(List<IlrExecutionEvent> executionEvents,
                                         List<String> firedRuleBusinessNames)

addTaskExecutedBusinessNames

protected void addTaskExecutedBusinessNames(List<IlrExecutionEvent> events,
                                            List<String> executedTaskBusinessNames)

getRules

public Map<String,IlrRuleInformation> getRules()
Description copied from interface: IlrExecutionTrace
Returns the ruleset rules by name.

Specified by:
getRules in interface IlrExecutionTrace
Returns:
All the rules in the ruleset. If this information is not available, null is returned.

getTasks

public Map<String,IlrTaskInformation> getTasks()
Description copied from interface: IlrExecutionTrace
Returns the ruleset tasks by name.

Specified by:
getTasks in interface IlrExecutionTrace
Returns:
All the rules. If this information is not available, null is returned.

getExecutionDate

public Date getExecutionDate()
Description copied from interface: IlrExecutionTrace
Returns the execution date.

Specified by:
getExecutionDate in interface IlrExecutionTrace
Returns:
The execution date. If this information is not available, null is returned.

getExecutionDuration

public Long getExecutionDuration()
Description copied from interface: IlrExecutionTrace
Returns the execution duration in milliseconds.

Specified by:
getExecutionDuration in interface IlrExecutionTrace
Returns:
The execution duration in milleseconds. If this information is not available, null is returned.

getExecutionEvents

public List<IlrExecutionEvent> getExecutionEvents()
Description copied from interface: IlrExecutionTrace
Returns the list of executed rules and tasks.

Specified by:
getExecutionEvents in interface IlrExecutionTrace
Returns:
The list of executed rules and tasks. If this information is not available, null is returned.

getInetAddress

public InetAddress getInetAddress()
Description copied from interface: IlrExecutionTrace
Returns the internet address.

Specified by:
getInetAddress in interface IlrExecutionTrace
Returns:
The internet address. If this information is not available, null is returned.

getRulesNotFired

public Set<IlrRuleInformation> getRulesNotFired()
Description copied from interface: IlrExecutionTrace
Returns the rule information for the rules that were not fired.

Specified by:
getRulesNotFired in interface IlrExecutionTrace
Returns:
The list of IlrRuleInformation objects for the rules that were not fired. If this information is not available, null is returned.

getSystemProperties

public Properties getSystemProperties()
Description copied from interface: IlrExecutionTrace
Returns the system properties of the execution environment.

Specified by:
getSystemProperties in interface IlrExecutionTrace
Returns:
The system properties of the execution environment. If this information is not available, null is returned.

getTasksNotExecuted

public Set<IlrTaskInformation> getTasksNotExecuted()
Description copied from interface: IlrExecutionTrace
Returns the task information for the tasks that were not executed.

Specified by:
getTasksNotExecuted in interface IlrExecutionTrace
Returns:
The list of IlrTaskInformation objects for the tasks that were not executed. If this information is not available, null is returned.

getTotalRulesFired

public Long getTotalRulesFired()
Description copied from interface: IlrExecutionTrace
Returns the number of rules fired.

Specified by:
getTotalRulesFired in interface IlrExecutionTrace
Returns:
The number of rules fired. If this information is not available, null is returned.

getTotalRulesNotFired

public Long getTotalRulesNotFired()
Description copied from interface: IlrExecutionTrace
Returns the number of rules that have not fired.

Specified by:
getTotalRulesNotFired in interface IlrExecutionTrace
Returns:
The number of rules that have not fired. If this information is not available, null is returned.

getTotalTasksExecuted

public Long getTotalTasksExecuted()
Description copied from interface: IlrExecutionTrace
Returns the number of tasks executed.

Specified by:
getTotalTasksExecuted in interface IlrExecutionTrace
Returns:
The number of tasks executed. If this information is not available, null is returned.

getTotalTasksNotExecuted

public Long getTotalTasksNotExecuted()
Description copied from interface: IlrExecutionTrace
Returns the number of tasks not executed.

Specified by:
getTotalTasksNotExecuted in interface IlrExecutionTrace
Returns:
The number of tasks not executed. If this information is not available, null is returned.

getWorkingMemory

public Collection<Object> getWorkingMemory()
Description copied from interface: IlrExecutionTrace
Returns the working memory as a Collection.

Specified by:
getWorkingMemory in interface IlrExecutionTrace
Returns:
The working memory. If this information is not available, null is returned.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013