Package jadex.rules.rulesystem.rete
Class Tuple
- java.lang.Object
-
- jadex.rules.rulesystem.rete.Tuple
-
public class Tuple extends java.lang.ObjectA 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 booleanequals(java.lang.Object obj)Test for equality.TuplegetLastTuple()Get the last tuple.java.lang.ObjectgetObject()Get the object.java.lang.ObjectgetObject(int index)Get the value at the index.java.util.ListgetObjects()Get the values.inthashCode()Get the hashcode.intsize()Get the size.java.lang.StringtoString()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:
hashCodein 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:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-