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

RuleBaseConfiguration - JBoss RULES 3.0.6 API 英文版文档


org.drools
Class RuleBaseConfiguration

java.lang.Object
  extended by org.drools.RuleBaseConfiguration
All Implemented Interfaces:
java.io.Serializable

public class RuleBaseConfiguration
extends java.lang.Object
implements java.io.Serializable

RuleBaseConfiguration A class to store RuleBase related configuration. It must be used at rule base instantiation time or not used at all. This class will automatically load default values from system properties, so if you want to set a default configuration value for all your new rule bases, you can simply set the property as a System property. After RuleBase is created, it makes the configuration immutable and there is no way to make it mutable again. This is to avoid inconsistent behavior inside rulebase. NOTE: This API is under review and may change in the future. Created: 16/05/2006

See Also:
Serialized Form

Field Summary
static java.lang.String PROPERTY_ASSERT_BEHAVIOR
          Property to define working memory assert behavior.
static java.lang.String PROPERTY_HASH_ALPHA_NODES
          Property to enable/disable alpha node hashing inside alpha nodes Defaults to false
static java.lang.String PROPERTY_HASH_OBJECT_TYPE_NODES
          Property to enable/disable alpha node hashing inside object type nodes Defaults to true
static java.lang.String PROPERTY_INDEX_LEFT_BETA_MEMORY
          Property to enable/disable left beta memory indexing Defaults to false
static java.lang.String PROPERTY_INDEX_RIGHT_BETA_MEMORY
          Property to enable/disable right beta memory indexing Defaults to true
static java.lang.String PROPERTY_LOGICAL_OVERRIDE_BEHAVIOR
           
static java.lang.String WM_BEHAVIOR_DISCARD
           
static java.lang.String WM_BEHAVIOR_EQUALITY
           
static java.lang.String WM_BEHAVIOR_IDENTITY
           
static java.lang.String WM_BEHAVIOR_PRESERVE
           
 
Constructor Summary
RuleBaseConfiguration()
           
 
Method Summary
 boolean getBooleanProperty(java.lang.String prop)
          Convenience method that calls get() method and returns a boolean for the given property.
 java.lang.String getProperty(java.lang.String prop)
          Returns the current value for the given property or null if it is not set
 boolean isImmutable()
          Returns true if this configuration object is immutable or false otherwise.
 void makeImmutable()
          Makes the configuration object immutable.
 void setProperty(java.lang.String prop, java.lang.String value)
          Sets the value of the given property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_INDEX_LEFT_BETA_MEMORY

public static final java.lang.String PROPERTY_INDEX_LEFT_BETA_MEMORY
Property to enable/disable left beta memory indexing Defaults to false

See Also:
Constant Field Values

PROPERTY_INDEX_RIGHT_BETA_MEMORY

public static final java.lang.String PROPERTY_INDEX_RIGHT_BETA_MEMORY
Property to enable/disable right beta memory indexing Defaults to true

See Also:
Constant Field Values

PROPERTY_HASH_OBJECT_TYPE_NODES

public static final java.lang.String PROPERTY_HASH_OBJECT_TYPE_NODES
Property to enable/disable alpha node hashing inside object type nodes Defaults to true

See Also:
Constant Field Values

PROPERTY_HASH_ALPHA_NODES

public static final java.lang.String PROPERTY_HASH_ALPHA_NODES
Property to enable/disable alpha node hashing inside alpha nodes Defaults to false

See Also:
Constant Field Values

PROPERTY_ASSERT_BEHAVIOR

public static final java.lang.String PROPERTY_ASSERT_BEHAVIOR
Property to define working memory assert behavior. Valid values are "identity" or "equality". Defaults to identity

See Also:
Constant Field Values

PROPERTY_LOGICAL_OVERRIDE_BEHAVIOR

public static final java.lang.String PROPERTY_LOGICAL_OVERRIDE_BEHAVIOR
See Also:
Constant Field Values

WM_BEHAVIOR_IDENTITY

public static final java.lang.String WM_BEHAVIOR_IDENTITY
See Also:
Constant Field Values

WM_BEHAVIOR_EQUALITY

public static final java.lang.String WM_BEHAVIOR_EQUALITY
See Also:
Constant Field Values

WM_BEHAVIOR_PRESERVE

public static final java.lang.String WM_BEHAVIOR_PRESERVE
See Also:
Constant Field Values

WM_BEHAVIOR_DISCARD

public static final java.lang.String WM_BEHAVIOR_DISCARD
See Also:
Constant Field Values
Constructor Detail

RuleBaseConfiguration

public RuleBaseConfiguration()
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String prop)
Returns the current value for the given property or null if it is not set

Parameters:
prop -
Returns:

getBooleanProperty

public boolean getBooleanProperty(java.lang.String prop)
Convenience method that calls get() method and returns a boolean for the given property.

Parameters:
prop -
Returns:

setProperty

public void setProperty(java.lang.String prop,
                        java.lang.String value)
Sets the value of the given property

Parameters:
prop -
value -

makeImmutable

public void makeImmutable()
Makes the configuration object immutable. Once it becomes immutable, there is no way to make it mutable again. This is done to keep consistency.


isImmutable

public boolean isImmutable()
Returns true if this configuration object is immutable or false otherwise.

Returns: