All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ajanta.pattern.Set

java.lang.Object
   |
   +----ajanta.pattern.Pattern
           |
           +----ajanta.pattern.PatternCollection
                   |
                   +----ajanta.pattern.Set

public class Set
extends PatternCollection
This is an unordered list of patterns. The agent must traverse all these patterns, but the order of traversal is immaterial, or is determined dynamically by the user-defined choosePattern method. Hence, This pattern also makes the plan more robust, since it can order paths based on host availability.


Constructor Index

 o Set()

Method Index

 o choosePattern()
It will determine the location of the next Pattern in the list by modifying value of current .
 o next(AgentEnv)
it chooses one amongst the list of patterns not yet traversed, and makes a hop to the next host defined by the chosen pattern.
 o scan()
An empty method ....can overridden in derived classes

Constructors

 o Set
 public Set()

Methods

 o next
 protected int next(AgentEnv host) throws UnknownHostException
it chooses one amongst the list of patterns not yet traversed, and makes a hop to the next host defined by the chosen pattern.

Overrides:
next in class Pattern
 o scan
 protected void scan()
An empty method ....can overridden in derived classes

Overrides:
scan in class Pattern
 o choosePattern
 protected int choosePattern()
It will determine the location of the next Pattern in the list by modifying value of current . It is application specific method and should be appropraitely overridden. Currenyly it provides sequential order


All Packages  Class Hierarchy  This Package  Previous  Next  Index