|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ajanta.pattern.Itinerary
Each agent contains an Itinerary which encapsulates the travel plan of the agent as a Sequence pattern. The basic unit of execution for an agent is the action it performs at each host. This is its computation, which is separate from its migration control. The exit protocol ( defined by its depart method of agent ), which is executed when the agent completes its computation task, requests the Itinerary to choose the next host and migrate to it.
Sequence
,
Serialized FormConstructor Summary | |
Itinerary()
|
Method Summary | |
ajanta.pattern.ItinEntry |
currentEntry()
It returns current entry of the Itinerary ( Sequence Pattern ) |
boolean |
done()
Return current status of the Itinerary |
ajanta.pattern.ItinEntry |
firstEntry()
|
void |
init()
It resets the Itinerary by calling reset method of Sequence Pattern |
void |
insert(ajanta.pattern.Pattern p)
It inserts a Pattern in Sequence Pattern of the Itinerary |
void |
join()
It calls join method of Sequence Pattern |
int |
next(ajanta.server.AgentEnv host)
|
void |
print()
It prints the Itinerary by calling print method of Sequence Pattern |
void |
scan()
An empty method |
void |
terminate()
It executes next method of Sequence Pattern of the Itinerary hence luanching agent to the next host in the itenerary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Itinerary()
Method Detail |
public ajanta.pattern.ItinEntry firstEntry()
public void insert(ajanta.pattern.Pattern p)
p
- Pattern to be insertedpublic void terminate()
public int next(ajanta.server.AgentEnv host) throws java.lang.Exception
java.lang.Exception
public void print()
public void init()
public void scan()
public boolean done()
public void join()
public ajanta.pattern.ItinEntry currentEntry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |