ajanta.pattern
Class Sequence

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

public class Sequence
extends PatternCollection

A sequence pattern is composed of an ordered list of Patterns. The traversal of this pattern implies a traversal of the Patterns in the list in sequential order.

See Also:
PatternCollection, Pattern, Serialized Form

Field Summary
 
Fields inherited from class ajanta.pattern.PatternCollection
current, list
 
Fields inherited from class ajanta.pattern.Pattern
action, DONE, FAILED, NOTDONE, status
 
Constructor Summary
Sequence()
           
 
Method Summary
protected  int next(ajanta.server.AgentEnv host)
          It calls next method of each pattern in the list in a sequential order
protected  void scan()
          An empty method
 
Methods inherited from class ajanta.pattern.PatternCollection
currentEntry, firstEntry, insert, join, print, reset
 
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
 

Constructor Detail

Sequence

public Sequence()
Method Detail

next

protected int next(ajanta.server.AgentEnv host)
            throws java.net.UnknownHostException
It calls next method of each pattern in the list in a sequential order

Specified by:
next in class Pattern
java.net.UnknownHostException

scan

protected void scan()
An empty method

Specified by:
scan in class Pattern