Class TerminalNode.ReteVariableAssignments

  • All Implemented Interfaces:
    IVariableAssignments
    Enclosing class:
    TerminalNode

    public static class TerminalNode.ReteVariableAssignments
    extends java.lang.Object
    implements IVariableAssignments
    The rete variable assignment help extracting values for varaibles.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map assignments
      The map with assignments.
      protected int hashcode
      The cached hashcode as multi-slots could change and would prevent lookup.
    • Constructor Summary

      Constructors 
      Constructor Description
      ReteVariableAssignments​(java.util.Map assignments, IRule rule)
      Create a new variable assignments.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Test if an object equals this.
      java.lang.String[] getVariableNames()
      Get the variable names.
      java.lang.Object getVariableValue​(java.lang.String var)
      Get a variable values.
      int hashCode()
      Get the hashcode of this object.
      java.lang.String toString()
      Get the string representation.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • assignments

        protected java.util.Map assignments
        The map with assignments.
      • hashcode

        protected int hashcode
        The cached hashcode as multi-slots could change and would prevent lookup.
    • Constructor Detail

      • ReteVariableAssignments

        public ReteVariableAssignments​(java.util.Map assignments,
                                       IRule rule)
        Create a new variable assignments.
    • Method Detail

      • getVariableValue

        public java.lang.Object getVariableValue​(java.lang.String var)
        Get a variable values.
        Specified by:
        getVariableValue in interface IVariableAssignments
        Parameters:
        var - The variable name.
        Returns:
        The variable assignment.
      • getVariableNames

        public java.lang.String[] getVariableNames()
        Get the variable names.
        Specified by:
        getVariableNames in interface IVariableAssignments
        Returns:
        All variable names.
      • hashCode

        public int hashCode()
        Get the hashcode of this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hashcode.
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if an object equals this.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.