edu.colby.cs.JeSS.util
Interface JeSSVisitorCollection

All Known Implementing Classes:
VectorVisitorCollection

public interface JeSSVisitorCollection

This interface defines the basic actions that the data structure storing the JeSSVisitors needs to perform.


Method Summary
 void add(JeSSVisitor visitor)
          Add another visitor to the Collection
 void append(JeSSVisitorCollection collection)
          Add all visitors from another Collection of this type
 JeSSVisitor elementAt(int i)
          Retrieve an element at specified location
 java.util.Collection getCollection()
          A helper method for append.
 int size()
           
 

Method Detail

elementAt

public JeSSVisitor elementAt(int i)
Retrieve an element at specified location

Parameters:
i - - the location of the desired element
Returns:
JeSSVisitor - the JeSSVisitor at i

add

public void add(JeSSVisitor visitor)
Add another visitor to the Collection

Parameters:
visitor - - the visitor to be added

append

public void append(JeSSVisitorCollection collection)
Add all visitors from another Collection of this type

Parameters:
collection - - the collection to be added

getCollection

public java.util.Collection getCollection()
A helper method for append. This allows any implementations of this interface to use any type of delegate so long as it is a collection

Returns:
Collection - the underlying delegate collection of an implementation of JeSSVisitorCollection

size

public int size()
Returns:
the number of elements in the collection