Package jadex.rules.rulesystem.rete
Class Tuple
- java.lang.Object
-
- jadex.rules.rulesystem.rete.Tuple
-
public class Tuple extends java.lang.Object
A tuple stores a variable binding and optionally has a pointer to another predecessor tuple.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Test for equality.Tuple
getLastTuple()
Get the last tuple.java.lang.Object
getObject()
Get the object.java.lang.Object
getObject(int index)
Get the value at the index.java.util.List
getObjects()
Get the values.int
hashCode()
Get the hashcode.int
size()
Get the size.java.lang.String
toString()
Get the string representation.
-
-
-
Method Detail
-
getObject
public java.lang.Object getObject()
Get the object.- Returns:
- The object.
-
getLastTuple
public Tuple getLastTuple()
Get the last tuple.- Returns:
- The last tuple.
-
size
public int size()
Get the size.- Returns:
- The size.
-
getObject
public java.lang.Object getObject(int index)
Get the value at the index.- Parameters:
index
- The index.
-
getObjects
public java.util.List getObjects()
Get the values.
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code.
-
equals
public boolean equals(java.lang.Object obj)
Test for equality. True, if both objects are equal.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-