|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lime.LimeTuple
This class, LimeTuple
, wraps all tuples returned by Lime to the
user. It's main function is to allow method access to the tuple itself as
well as to the additional fields of the tuples, e.g., the current and
destination locations as well as the unique identifier assigned within Lime.
LimeTupleSpace
,
LimeTemplate
Field Summary | |
(package private) AgentLocation |
cur
|
(package private) AgentLocation |
dest
|
(package private) LimeTupleID |
id
|
(package private) lights.interfaces.ITuple |
tuple
|
Constructor Summary | |
protected |
LimeTuple(AgentLocation cur,
AgentLocation dest,
LimeTupleID id,
lights.interfaces.ITuple t)
Construct a new LimeTuple from inside the Lime package ONLY. |
|
LimeTuple(lights.interfaces.ITuple t)
Construct a new LimeTuple with the given contents. |
Method Summary | |
(package private) static LimeTuple |
fromFlatToLimeTuple(lights.interfaces.ITuple flatT)
Given a tuple, this method converts it to a LimeTuple. |
AgentLocation |
getCurrent()
Get the current location associated with the tuple. |
AgentLocation |
getDestination()
Get the destination of the tuple. |
LimeTupleID |
getID()
get the tuple id. |
lights.interfaces.ITuple |
getTuple()
Get the tuple. |
void |
setTuple(lights.interfaces.ITuple t)
Set the tuple. |
(package private) lights.interfaces.ITuple |
toFlatTuple()
Package only method to create the flat tuple for this LimeTuple. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
lights.interfaces.ITuple tuple
LimeTupleID id
AgentLocation cur
AgentLocation dest
Constructor Detail |
protected LimeTuple(AgentLocation cur, AgentLocation dest, LimeTupleID id, lights.interfaces.ITuple t)
cur
- dest
- id
- t
- public LimeTuple(lights.interfaces.ITuple t)
null
.
t
- the tupleMethod Detail |
public lights.interfaces.ITuple getTuple()
public void setTuple(lights.interfaces.ITuple t)
t
- the tuple to be used.public LimeTupleID getID()
public AgentLocation getCurrent()
public AgentLocation getDestination()
lights.interfaces.ITuple toFlatTuple()
static LimeTuple fromFlatToLimeTuple(lights.interfaces.ITuple flatT)
flatT
- a limified tuple
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |