All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsltools.testers.sequencetester.PosSeqFactory

java.lang.Object
   |
   +----jdsltools.testers.GenericFactory
           |
           +----jdsltools.testers.sequencetester.PosSeqFactory

public class PosSeqFactory
extends GenericFactory
Builds PositionalSequences.
MT_PS: builds an empty positional sequence
ONE: builds a one position sequence
THREE: builds a three position sequence
FIRST: returns the last position in the sequence
ALL: returns all the positions

Author:
Marco da Silva (mds)

Variable Index

 o ALL
All the positions
 o FIRST
The first position
 o MT_PS
An empty positional sequence
 o ONE
A one position sequence
 o THREE
A three position sequence

Constructor Index

 o PosSeqFactory(String)
The constructor of this factory takes the fully qualified name of the class of the PriorityQueue
 o PosSeqFactory(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_PS
 public static final int MT_PS
An empty positional sequence

 o ONE
 public static final int ONE
A one position sequence

 o THREE
 public static final int THREE
A three position sequence

 o FIRST
 public static final int FIRST
The first position

 o ALL
 public static final int ALL
All the positions

Constructors

 o PosSeqFactory
 public PosSeqFactory(String structToBuild)
The constructor of this factory takes the fully qualified name of the class of the PriorityQueue

Parameters:
structToBuild - The fully qualified name of the class to build.
 o PosSeqFactory
 public PosSeqFactory(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