站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

RuleExecutionSetImpl (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.jsr94.rules.admin
Class RuleExecutionSetImpl

java.lang.Object
  extended by org.drools.jsr94.rules.admin.RuleExecutionSetImpl
All Implemented Interfaces:
Serializable, javax.rules.admin.RuleExecutionSet

public class RuleExecutionSetImpl
extends Object
implements javax.rules.admin.RuleExecutionSet

The Drools implementation of the RuleExecutionSet interface which defines a named set of executable Rule instances. A RuleExecutionSet can be executed by a rules engine via the RuleSession interface.

Author:
N. Alex Rupp (n_alex codehaus.org), thomas diesler , michael frandsen
See Also:
RuleExecutionSet, Serialized Form

Method Summary
 String getDefaultObjectFilter()
          Returns the default ObjectFilter class name associated with this rule execution set.
 String getDescription()
          Get a description of this rule execution set.
 String getName()
          Get the name of this rule execution set.
 javax.rules.ObjectFilter getObjectFilter()
          Get an instance of the default filter, or null.
 Object getProperty(Object key)
          Get a user-defined or Drools-defined property.
 List getRules()
          Return a list of all Rules that are part of the RuleExecutionSet.
 StatefulSession newStatefulSession(boolean keepReference)
          Returns a new WorkingMemory object.
 StatelessSession newStatelessSession()
          Returns a new WorkingMemory object.
 void setDefaultObjectFilter(String objectFilterClassname)
          Set the default ObjectFilter class.
 void setProperty(Object key, Object value)
          Set a user-defined or Drools-defined property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObjectFilter

public javax.rules.ObjectFilter getObjectFilter()
Get an instance of the default filter, or null.

Returns:
An instance of the default filter, or null.

newStatefulSession

public StatefulSession newStatefulSession(boolean keepReference)
Returns a new WorkingMemory object.

Returns:
A new WorkingMemory object.

newStatelessSession

public StatelessSession newStatelessSession()
Returns a new WorkingMemory object.

Returns:
A new WorkingMemory object.

getName

public String getName()
Get the name of this rule execution set.

Specified by:
getName in interface javax.rules.admin.RuleExecutionSet
Returns:
The name of this rule execution set.

getDescription

public String getDescription()
Get a description of this rule execution set.

Specified by:
getDescription in interface javax.rules.admin.RuleExecutionSet
Returns:
A description of this rule execution set or null of no description is specified.

getProperty

public Object getProperty(Object key)
Get a user-defined or Drools-defined property.

Specified by:
getProperty in interface javax.rules.admin.RuleExecutionSet
Parameters:
key - the key to use to retrieve the property
Returns:
the value bound to the key or null

setProperty

public void setProperty(Object key,
                        Object value)
Set a user-defined or Drools-defined property.

Specified by:
setProperty in interface javax.rules.admin.RuleExecutionSet
Parameters:
key - the key for the property value
value - the value to associate with the key

setDefaultObjectFilter

public void setDefaultObjectFilter(String objectFilterClassname)
Set the default ObjectFilter class. This class is instantiated at runtime and used to filter result objects unless another filter is specified using the available APIs in the runtime view of a rule engine.

Setting the class name to null removes the default ObjectFilter.

Specified by:
setDefaultObjectFilter in interface javax.rules.admin.RuleExecutionSet
Parameters:
objectFilterClassname - the default ObjectFilter class

getDefaultObjectFilter

public String getDefaultObjectFilter()
Returns the default ObjectFilter class name associated with this rule execution set.

Specified by:
getDefaultObjectFilter in interface javax.rules.admin.RuleExecutionSet
Returns:
the default ObjectFilter class name

getRules

public List getRules()
Return a list of all Rules that are part of the RuleExecutionSet.

Specified by:
getRules in interface javax.rules.admin.RuleExecutionSet
Returns:
a list of all Rules that are part of the RuleExecutionSet.


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.