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.
-
Set()
-
-
choosePattern()
- It will determine the location of the next Pattern in the list
by modifying value of current .
-
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.
-
scan()
- An empty method ....can overridden in derived classes
Set
public Set()
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
scan
protected void scan()
- An empty method ....can overridden in derived classes
- Overrides:
- scan in class Pattern
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