Class TerminalNode.ReteVariableAssignments
- java.lang.Object
-
- jadex.rules.rulesystem.rete.nodes.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.
-
-
-
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 interfaceIVariableAssignments
- Parameters:
var
- The variable name.- Returns:
- The variable assignment.
-
getVariableNames
public java.lang.String[] getVariableNames()
Get the variable names.- Specified by:
getVariableNames
in interfaceIVariableAssignments
- Returns:
- All variable names.
-
hashCode
public int hashCode()
Get the hashcode of this object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hashcode.
-
equals
public boolean equals(java.lang.Object obj)
Test if an object equals this.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- The object.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-