ajanta.pattern
Class LoopSet

java.lang.Object
  |
  +--ajanta.pattern.Pattern
        |
        +--ajanta.pattern.PatternCollection
              |
              +--ajanta.pattern.Loop
                    |
                    +--ajanta.pattern.LoopSet
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class LoopSet
extends Loop

A LoopSet pattern is composed similar as Loop Pattern. If the next entry is unreachable it is skipped and the traversal continues

See Also:
PatternCollection, Pattern, Serialized Form

Field Summary
protected  int failedCount
           
 
Fields inherited from class ajanta.pattern.Loop
loopInterval
 
Fields inherited from class ajanta.pattern.PatternCollection
current, list
 
Fields inherited from class ajanta.pattern.Pattern
action, DONE, FAILED, NOTDONE, status
 
Constructor Summary
LoopSet()
           
 
Method Summary
protected  int next(ajanta.server.AgentEnv host)
          The pattern traversal is determined by the abstarct method next.
protected  void reset()
          It sets the status of all the patterns in the list to NOTDONE
 
Methods inherited from class ajanta.pattern.Loop
scan, setItinFinished, setLoopInterval
 
Methods inherited from class ajanta.pattern.PatternCollection
currentEntry, firstEntry, insert, join, print
 
Methods inherited from class ajanta.pattern.Pattern
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failedCount

protected int failedCount
Constructor Detail

LoopSet

public LoopSet()
Method Detail

next

protected int next(ajanta.server.AgentEnv host)
            throws java.net.UnknownHostException
Description copied from class: Pattern
The pattern traversal is determined by the abstarct method next. It captures the notion of next hop in the migration path of the agent. Each pattern has its own semantics to determine the next hop

Overrides:
next in class Loop
java.net.UnknownHostException

reset

protected void reset()
Description copied from class: PatternCollection
It sets the status of all the patterns in the list to NOTDONE

Overrides:
reset in class Loop