Class EntryPointId

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, PatternSource, RuleComponent, RuleConditionElement

    public class EntryPointId
    extends ConditionalElement
    implements PatternSource, java.io.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
    • Constructor Detail

      • EntryPointId

        public EntryPointId()
      • EntryPointId

        public EntryPointId​(java.lang.String entryPointId)
        Constructor.
        Parameters:
        entryPointId - the ID for this entry point
    • Method Detail

      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • getInnerDeclarations

        public java.util.Map<java.lang.String,​Declaration> getInnerDeclarations()
        It is not possible to declare any new variables, so always return an Empty Map
        Specified by:
        getInnerDeclarations in interface RuleConditionElement
        Returns:
      • getOuterDeclarations

        public java.util.Map<java.lang.String,​Declaration> getOuterDeclarations()
        It is not possible to declare and export any variables, so always return an empty map
        Specified by:
        getOuterDeclarations in interface RuleConditionElement
        Returns:
      • getEntryPointId

        public java.lang.String getEntryPointId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.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: