Package org.drools.base.rule
Class EntryPointId
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.base.rule.EntryPointId
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,PatternSource,RuleComponent,RuleConditionElement
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()There is not reason to clone this object since it is stateless.booleanIt is not possible to declare any new variables, so always return an Empty MapList<? extends RuleConditionElement>It is not possible to nest elements inside an entry point, so always return an empty list.It is not possible to declare and export any variables, so always return an empty mapinthashCode()booleanReturns true in case this RuleConditionElement delimits a pattern visibility scope.voidbooleanresolveDeclaration(String identifier) Not possible to resolve any declaration, so always return null.toString()void
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
EntryPointId
public EntryPointId() -
EntryPointId
Constructor.- Parameters:
entryPointId- the ID for this entry point
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
clone
There is not reason to clone this object since it is stateless. So a clone() call will return the instance itself.- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
getInnerDeclarations
It is not possible to declare any new variables, so always return an Empty Map- Specified by:
getInnerDeclarationsin interfaceRuleConditionElement- Returns:
-
getNestedElements
It is not possible to nest elements inside an entry point, so always return an empty list.- Specified by:
getNestedElementsin interfaceRuleConditionElement- Returns:
-
getOuterDeclarations
It is not possible to declare and export any variables, so always return an empty map- Specified by:
getOuterDeclarationsin interfaceRuleConditionElement- Returns:
-
resolveDeclaration
Not possible to resolve any declaration, so always return null.- Specified by:
resolveDeclarationin interfaceRuleConditionElement- Returns:
-
getEntryPointId
-
hashCode
public int hashCode() -
equals
-
toString
-
isPatternScopeDelimiter
public boolean isPatternScopeDelimiter()Description copied from interface:RuleConditionElementReturns 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:
isPatternScopeDelimiterin interfaceRuleConditionElement- Returns:
-
requiresLeftActivation
public boolean requiresLeftActivation()- Specified by:
requiresLeftActivationin interfacePatternSource
-