org.drools.rule
Class EntryPoint

java.lang.Object
  extended by org.drools.rule.ConditionalElement
      extended by org.drools.rule.EntryPoint
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, PatternSource, RuleConditionElement, RuleComponent

public class EntryPoint
extends ConditionalElement
implements PatternSource, Externalizable

This class defines a Rete "Entry Point". An entry point is used as a source of facts that are scoped to a separate alpha network. The alpha network is not shared among separate entry points and this allows them to safelly run in parallel and concurrent modes.

See Also:
Serialized Form

Field Summary
static EntryPoint DEFAULT
           
 
Constructor Summary
EntryPoint()
           
EntryPoint(String entryPointId)
          Constructor.
 
Method Summary
 Object clone()
          There is not reason to clone this object since it is stateless.
 boolean equals(Object obj)
           
 String getEntryPointId()
          Returns this entry point ID
 Map getInnerDeclarations()
          It is not possible to declare any new variables, so always return an Empty Map
 List getNestedElements()
          It is not possible to nest elements inside an entry point, so always return an empty list.
 Map getOuterDeclarations()
          It is not possible to declare and export any variables, so always return an empty map
 int hashCode()
           
 boolean isPatternScopeDelimiter()
          Returns true in case this RuleConditionElement delimits a pattern visibility scope.
 void readExternal(ObjectInput in)
           
 Declaration resolveDeclaration(String identifier)
          Not possible to resolve any declaration, so always return null.
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final EntryPoint DEFAULT
Constructor Detail

EntryPoint

public EntryPoint()

EntryPoint

public EntryPoint(String entryPointId)
Constructor.

Parameters:
entryPointId - the ID for this entry point
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

clone

public Object clone()
There is not reason to clone this object since it is stateless. So a clone() call will return the instance itself.

Specified by:
clone in interface RuleConditionElement
Specified by:
clone in class ConditionalElement
Returns:
See Also:
ConditionalElement.clone()

getInnerDeclarations

public Map getInnerDeclarations()
It is not possible to declare any new variables, so always return an Empty Map

Specified by:
getInnerDeclarations in interface RuleConditionElement
Returns:
See Also:
RuleConditionElement.getInnerDeclarations()

getNestedElements

public List getNestedElements()
It is not possible to nest elements inside an entry point, so always return an empty list.

Specified by:
getNestedElements in interface RuleConditionElement
Returns:
See Also:
RuleConditionElement.getNestedElements()

getOuterDeclarations

public Map getOuterDeclarations()
It is not possible to declare and export any variables, so always return an empty map

Specified by:
getOuterDeclarations in interface RuleConditionElement
Returns:
See Also:
RuleConditionElement.getOuterDeclarations()

resolveDeclaration

public Declaration resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.

Specified by:
resolveDeclaration in interface RuleConditionElement
Returns:
See Also:
RuleConditionElement.resolveDeclaration(java.lang.String)

getEntryPointId

public String getEntryPointId()
Returns this entry point ID

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

isPatternScopeDelimiter

public boolean isPatternScopeDelimiter()
Description copied from interface: RuleConditionElement
Returns true in case this RuleConditionElement delimits a pattern visibility scope. For instance, AND CE is not a scope delimiter, while NOT CE is a scope delimiter

Specified by:
isPatternScopeDelimiter in interface RuleConditionElement
Returns:


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