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)
-
ALL_TEN
-
-
MT_CS
-
-
ONE_ELEM
-
-
START
-
-
TEN_ELEM
-
-
CircularSeqFactory(String)
-
-
CircularSeqFactory(String, String)
-
-
generate(int, int)
- Generates a data structure based on the type and position key.
-
init(String)
- call to avoid null pointer exceptions, creates structures that take
parameters.
-
location(int)
- Returns the current container and a new location for that container
-
setContainer(Object)
- Sets the current container of the factory, so that the factory can
generate locations like Position and Locator
MT_CS
public static final int MT_CS
START
public static final int START
ONE_ELEM
public static final int ONE_ELEM
TEN_ELEM
public static final int TEN_ELEM
ALL_TEN
public static final int ALL_TEN
CircularSeqFactory
public CircularSeqFactory(String structToBuild)
CircularSeqFactory
public CircularSeqFactory(String structToBuild,
String arguments)
init
public void init(String arguments)
- call to avoid null pointer exceptions, creates structures that take
parameters.
generate
public TestStructure generate(int structure,
int location)
- Generates a data structure based on the type and position key.
- Overrides:
- generate in class GenericFactory
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
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