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

Constructor Index

 o Itinerary()

Method Index

 o currentEntry()
It returns current entry of the Itinerary ( Sequence Pattern )
 o done()
Return current status of the Itinerary
 o firstEntry()
 o init()
It resets the Itinerary by calling reset method of Sequence Pattern
 o insert(Pattern)
It inserts a Pattern in Sequence Pattern of the Itinerary
 o join()
It calls join method of Sequence Pattern
 o next(AgentEnv)
It executes next method of Sequence Pattern of the Itinerary hence luanching agent to the next host in the itenerary.
 o print()
It prints the Itinerary by calling print method of Sequence Pattern
 o scan()
An empty method

Constructors

 o Itinerary
 public Itinerary()

Methods

 o firstEntry
 public ItinEntry firstEntry()
Returns:
It returns the first ItinEntry in the Sequence Pattern of the Itinerary
 o insert
 public void insert(Pattern p)
It inserts a Pattern in Sequence Pattern of the Itinerary

Parameters:
p - Pattern to be inserted
 o 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.

 o print
 public void print()
It prints the Itinerary by calling print method of Sequence Pattern

 o init
 public void init()
It resets the Itinerary by calling reset method of Sequence Pattern

 o scan
 public void scan()
An empty method

 o done
 public boolean done()
Return current status of the Itinerary

 o join
 public void join()
It calls join method of Sequence Pattern

 o currentEntry
 public ItinEntry currentEntry()
It returns current entry of the Itinerary ( Sequence Pattern )


All Packages  Class Hierarchy  This Package  Previous  Next  Index