|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlime.LimeTemplate
This class, LimeTemplate
, is used to wrap the tuple along with
the extra fields to be matched, e.g., the current, destination, and tuple
id fields.
LimeTuple
,
LimeTupleSpace
Field Summary | |
(package private) Location |
cur
|
(package private) AgentLocation |
dest
|
(package private) LimeTupleID |
id
|
(package private) lights.interfaces.ITuple |
tuple
|
Constructor Summary | |
LimeTemplate(lights.interfaces.ITuple t)
Construct a new LimeTemplate with the cur, dest, and tuple id formal. |
|
LimeTemplate(Location cur,
AgentLocation dest,
LimeTupleID id,
lights.interfaces.ITuple t)
Construct a new LimeTemplate. |
Method Summary | |
(package private) static LimeTemplate |
fromFlatToLimeTemplate(lights.interfaces.ITuple flatT)
Given a tuple, this method converts it to a LimeTuple. |
Location |
getCurrent()
Get the current location associated with the tuple. |
AgentLocation |
getDestination()
Get the destination of the tuple. |
void |
getDestination(AgentLocation loc)
|
LimeTupleID |
getID()
get the tuple id. |
void |
getID(LimeTupleID id)
get the tuple id. |
lights.interfaces.ITuple |
getTuple()
Get the tuple. |
void |
setCurrent(Location loc)
|
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
Location cur
AgentLocation dest
Constructor Detail |
public LimeTemplate(Location cur, AgentLocation dest, LimeTupleID id, lights.interfaces.ITuple t)
cur
- current locationdest
- destination locationid
- tuple id, or null
for formalt
- the tuplepublic LimeTemplate(lights.interfaces.ITuple t)
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 void getID(LimeTupleID id)
public Location getCurrent()
public void setCurrent(Location loc)
public AgentLocation getDestination()
public void getDestination(AgentLocation loc)
lights.interfaces.ITuple toFlatTuple()
static LimeTemplate fromFlatToLimeTemplate(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 |