Package org.drools.core.rule
Class EntryPointId
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.rule.EntryPointId
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
,PatternSource
,RuleConditionElement
,RuleComponent
public class EntryPointId 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
Fields Modifier and Type Field Description static EntryPointId
DEFAULT
-
Constructor Summary
Constructors Constructor Description EntryPointId()
EntryPointId(String entryPointId)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntryPointId
clone()
There is not reason to clone this object since it is stateless.boolean
equals(Object obj)
String
getEntryPointId()
Map<String,Declaration>
getInnerDeclarations()
It is not possible to declare any new variables, so always return an Empty MapList<? extends RuleConditionElement>
getNestedElements()
It is not possible to nest elements inside an entry point, so always return an empty list.Map<String,Declaration>
getOuterDeclarations()
It is not possible to declare and export any variables, so always return an empty mapint
hashCode()
boolean
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits a pattern visibility scope.void
readExternal(ObjectInput in)
boolean
requiresLeftActivation()
Declaration
resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Field Detail
-
DEFAULT
public static final EntryPointId DEFAULT
-
-
Constructor Detail
-
EntryPointId
public EntryPointId()
-
EntryPointId
public EntryPointId(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 interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
clone
public EntryPointId 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 interfaceRuleConditionElement
- Specified by:
clone
in classConditionalElement
- Returns:
-
getInnerDeclarations
public Map<String,Declaration> getInnerDeclarations()
It is not possible to declare any new variables, so always return an Empty Map- Specified by:
getInnerDeclarations
in interfaceRuleConditionElement
- Returns:
-
getNestedElements
public List<? extends RuleConditionElement> getNestedElements()
It is not possible to nest elements inside an entry point, so always return an empty list.- Specified by:
getNestedElements
in interfaceRuleConditionElement
- Returns:
-
getOuterDeclarations
public Map<String,Declaration> getOuterDeclarations()
It is not possible to declare and export any variables, so always return an empty map- Specified by:
getOuterDeclarations
in interfaceRuleConditionElement
- Returns:
-
resolveDeclaration
public Declaration resolveDeclaration(String identifier)
Not possible to resolve any declaration, so always return null.- Specified by:
resolveDeclaration
in interfaceRuleConditionElement
- Returns:
-
getEntryPointId
public String getEntryPointId()
-
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 interfaceRuleConditionElement
- Returns:
-
requiresLeftActivation
public boolean requiresLeftActivation()
- Specified by:
requiresLeftActivation
in interfacePatternSource
-
-