All Packages Class Hierarchy This Package Previous Next Index
Class ajanta.pattern.Itinerary
java.lang.Object
|
+----ajanta.pattern.Itinerary
- public class Itinerary
- extends Object
- implements Serializable
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.
- See Also:
- Sequence
-
Itinerary()
-
-
currentEntry()
- It returns current entry of the Itinerary ( Sequence Pattern )
-
done()
- Return current status of the Itinerary
-
firstEntry()
-
-
init()
- It resets the Itinerary by calling reset method of Sequence Pattern
-
insert(Pattern)
- It inserts a Pattern in Sequence Pattern of the Itinerary
-
join()
- It calls join method of Sequence Pattern
-
next(AgentEnv)
-
It executes next method of Sequence Pattern of the Itinerary
hence luanching agent to the next host in the itenerary.
-
print()
- It prints the Itinerary by calling print method of Sequence Pattern
-
scan()
- An empty method
Itinerary
public Itinerary()
firstEntry
public ItinEntry firstEntry()
- Returns:
- It returns the first ItinEntry in the Sequence Pattern of the
Itinerary
insert
public void insert(Pattern p)
- It inserts a Pattern in Sequence Pattern of the Itinerary
- Parameters:
- p - Pattern to be inserted
next
public int next(AgentEnv host) throws Exception
- It executes next method of Sequence Pattern of the Itinerary
hence luanching agent to the next host in the itenerary.
print
public void print()
- It prints the Itinerary by calling print method of Sequence Pattern
init
public void init()
- It resets the Itinerary by calling reset method of Sequence Pattern
scan
public void scan()
- An empty method
done
public boolean done()
- Return current status of the Itinerary
join
public void join()
- It calls join method of Sequence Pattern
currentEntry
public ItinEntry currentEntry()
- It returns current entry of the Itinerary ( Sequence Pattern )
All Packages Class Hierarchy This Package Previous Next Index