All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsltools.testers.circularseqtester.CircularSeqFactory

java.lang.Object
   |
   +----jdsltools.testers.GenericFactory
           |
           +----jdsltools.testers.circularseqtester.CircularSeqFactory

public class CircularSeqFactory
extends GenericFactory
Builds CircularSequences
Key Meaning
==================================
MT_CS Empty CircularSequence
ONE_ELEM A CS with one element
TEN_ELEM A CS with ten elements

START The start position
ALL_TEN The ten positions
associated with
TEN_ELEM

Author:
Marco da Silva (mds)

Variable Index

 o ALL_TEN
 o MT_CS
 o ONE_ELEM
 o START
 o TEN_ELEM

Constructor Index

 o CircularSeqFactory(String)
 o CircularSeqFactory(String, String)

Method Index

 o generate(int, int)
Generates a data structure based on the type and position key.
 o init(String)
call to avoid null pointer exceptions, creates structures that take parameters.
 o location(int)
Returns the current container and a new location for that container
 o setContainer(Object)
Sets the current container of the factory, so that the factory can generate locations like Position and Locator

Variables

 o MT_CS
 public static final int MT_CS
 o START
 public static final int START
 o ONE_ELEM
 public static final int ONE_ELEM
 o TEN_ELEM
 public static final int TEN_ELEM
 o ALL_TEN
 public static final int ALL_TEN

Constructors

 o CircularSeqFactory
 public CircularSeqFactory(String structToBuild)
 o CircularSeqFactory
 public CircularSeqFactory(String structToBuild,
                           String arguments)

Methods

 o init
 public void init(String arguments)
call to avoid null pointer exceptions, creates structures that take parameters.

 o generate
 public TestStructure generate(int structure,
                               int location)
Generates a data structure based on the type and position key.

Overrides:
generate in class GenericFactory
 o setContainer
 public void setContainer(Object container)
Sets the current container of the factory, so that the factory can generate locations like Position and Locator

Overrides:
setContainer in class GenericFactory
 o location
 public TestStructure location(int location)
Returns the current container and a new location for that container

Overrides:
location in class GenericFactory

All Packages  Class Hierarchy  This Package  Previous  Next  Index