edu.unh.sdb.lattice
Class LatticeBuilder

java.lang.Object
  extended by edu.unh.sdb.lattice.LatticeBuilder

public class LatticeBuilder
extends java.lang.Object

Manufactures Logical Lattice objects Hold relevant data and validates before instantiating the appropriate Lattice objects


Field Summary
static int AREA_TRIANGLE_APPROXIMATOR
          declare constants to denote triangle approximator
static int ARRAY_APPROXIMATOR
          declare constants to denote array approximator
static int DEFAULT_APPROXIMATOR
          declare constants to denote default approximator
static int DEFAULT_GEOMETRY
          declare constants to denote default topology
static int DEFAULT_TOPOLOGY
          declare constants to denote default topology
protected  boolean discardFlag
          flag to set if lattice is not to be instantiated
protected  LatticeCollection latticeList
           
static int RECTILINEAR_TOPOLOGY
          declare constants to denote recti-linear topology
static int REGULARCELL_GEOMETRY
          declare constants to denote recti-linear topology
static int REGULARPOINT_GEOMETRY
          declare constants to denote recti-linear topology
static int UNSTRUCTURED_GEOMETRY
          declare constants to denote unstructured topology
static int UNSTRUCTURED_TOPOLOGY
          declare constants to denote unstructured topology
 
Constructor Summary
LatticeBuilder(java.lang.String n)
          Default Constructor
 
Method Summary
 void checkTopology()
          check Topology's Geometry, if it is omitted, set it to the lattice's Geometry
 int getApproximatorType()
          Returns the approximator type as an integer
 java.lang.String getCoordinateFDLFileName()
          Returns the coordianteFDLFileName
 java.lang.String getCoordinateFileName(int i)
          Returns the coordinateName
 RecordSpec getCoordinateRecordSpec()
          Returns the coordinateRecordSpec for SplitUnstructuredTopology
 java.lang.String getDataFileName(int i)
          Returns the dataName
 RecordSpec getDataRecordSpec()
          Returns the dataRecordSpec for SplitUnstructuredTopology
 int getDimensionality()
          Returns the topology dimensionality as an integer
 GBounds getLatticeGBounds()
          returns the Index Space Bounds from this builder or defaults to the topologyDS bounds
 int getLatticeGeometryType()
           
 ISBounds getLatticeISBounds()
          returns the Index Space Bounds from this builder or defaults to the topologyDS bounds
 java.lang.String getName()
          Returns the lattice name
 java.lang.String getPointInfoFDLFileName()
          Returns the pointInfoFDLFileName
 GBounds getTopologyGBounds()
          returns the Index Space Bounds from this builder or defaults to the topologyDS bounds
 int getTopologyGeometryType()
           
 ISBounds getTopologyISBounds()
          returns the Index Space Bounds from this builder or defaults to the topologyDS bounds
 int getTopologyType()
          Returns the topology type as an integer
 java.lang.String getVertexFileIndicesName(int i)
          Returns the vertexIndicesName
 RecordSpec getVertexIndicesRecordSpec()
          Returns the vertexIndicesRecordSpec for SplitUnstructuredTopology
 java.lang.String getVIndicesFDLFileName()
          Returns the vIndicesFDLFileName
 Lattice makeLattice()
          instantiates an actual lattice
 void setApproximatorType(int t)
          Sets the approximator type for this Lattice
 void setCoordinateFDLFileName(java.lang.String name)
          Sets the FDL File name for SplitUnstructuredTopology
 void setCoordinateRecordSpec(RecordSpec rs)
          Sets the coordinateRecordSpec for SplitUnstructuredTopology
 void setDataRecordSpec(RecordSpec rs)
          Sets the dataRecordSpec for SplitUnstructuredTopology
 void setDimensionality(int t)
          Sets the topology dimension for this Lattice
 void setFDLGroup(FDLGroup[] fdlGroup)
          Sets the array of FDLGroup for SplitUnstructuredTopology
 void setGBounds(GBounds b, java.lang.String type)
          Sets the geometry bounds
 void setGeometryType(int gtype, java.lang.String type)
           
 void setISBounds(ISBounds b, java.lang.String type)
          Sets the topology bounds
 void setName(java.lang.String s)
          Sets the lattice name to the String provided
 void setPointInfoFDLFileName(java.lang.String name)
          Sets the FDL File name for SplitUnstructuredTopology
 void setTopologyDS(DataSource ds)
          Sets the rood datasource
 void setTopologyType(int t)
          Sets the topology type for this Lattice
 void setVertexIndicesRecordSpec(RecordSpec rs)
          Sets the vertexIndicesRecordSpec for SplitUnstructuredTopology
 void setVIndicesFDLFileName(java.lang.String name)
          Sets the FDL File name for SplitUnstructuredTopology
 java.lang.String toString()
          diagnostic utility method for dumping this class to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

latticeList

protected LatticeCollection latticeList

DEFAULT_GEOMETRY

public static final int DEFAULT_GEOMETRY
declare constants to denote default topology

See Also:
Constant Field Values

UNSTRUCTURED_GEOMETRY

public static final int UNSTRUCTURED_GEOMETRY
declare constants to denote unstructured topology

See Also:
Constant Field Values

REGULARCELL_GEOMETRY

public static final int REGULARCELL_GEOMETRY
declare constants to denote recti-linear topology

See Also:
Constant Field Values

REGULARPOINT_GEOMETRY

public static final int REGULARPOINT_GEOMETRY
declare constants to denote recti-linear topology

See Also:
Constant Field Values

DEFAULT_APPROXIMATOR

public static final int DEFAULT_APPROXIMATOR
declare constants to denote default approximator

See Also:
Constant Field Values

ARRAY_APPROXIMATOR

public static final int ARRAY_APPROXIMATOR
declare constants to denote array approximator

See Also:
Constant Field Values

AREA_TRIANGLE_APPROXIMATOR

public static final int AREA_TRIANGLE_APPROXIMATOR
declare constants to denote triangle approximator

See Also:
Constant Field Values

DEFAULT_TOPOLOGY

public static final int DEFAULT_TOPOLOGY
declare constants to denote default topology

See Also:
Constant Field Values

UNSTRUCTURED_TOPOLOGY

public static final int UNSTRUCTURED_TOPOLOGY
declare constants to denote unstructured topology

See Also:
Constant Field Values

RECTILINEAR_TOPOLOGY

public static final int RECTILINEAR_TOPOLOGY
declare constants to denote recti-linear topology

See Also:
Constant Field Values

discardFlag

protected boolean discardFlag
flag to set if lattice is not to be instantiated

Constructor Detail

LatticeBuilder

public LatticeBuilder(java.lang.String n)
Default Constructor

Method Detail

setName

public void setName(java.lang.String s)
Sets the lattice name to the String provided


getName

public java.lang.String getName()
Returns the lattice name


setTopologyDS

public void setTopologyDS(DataSource ds)
Sets the rood datasource


setApproximatorType

public void setApproximatorType(int t)
Sets the approximator type for this Lattice


getApproximatorType

public int getApproximatorType()
Returns the approximator type as an integer


setTopologyType

public void setTopologyType(int t)
Sets the topology type for this Lattice


getTopologyType

public int getTopologyType()
Returns the topology type as an integer


setDimensionality

public void setDimensionality(int t)
Sets the topology dimension for this Lattice


getDimensionality

public int getDimensionality()
Returns the topology dimensionality as an integer


setVertexIndicesRecordSpec

public void setVertexIndicesRecordSpec(RecordSpec rs)
Sets the vertexIndicesRecordSpec for SplitUnstructuredTopology


getVertexIndicesRecordSpec

public RecordSpec getVertexIndicesRecordSpec()
Returns the vertexIndicesRecordSpec for SplitUnstructuredTopology


setCoordinateRecordSpec

public void setCoordinateRecordSpec(RecordSpec rs)
Sets the coordinateRecordSpec for SplitUnstructuredTopology


getCoordinateRecordSpec

public RecordSpec getCoordinateRecordSpec()
Returns the coordinateRecordSpec for SplitUnstructuredTopology


setDataRecordSpec

public void setDataRecordSpec(RecordSpec rs)
Sets the dataRecordSpec for SplitUnstructuredTopology


getDataRecordSpec

public RecordSpec getDataRecordSpec()
Returns the dataRecordSpec for SplitUnstructuredTopology


setFDLGroup

public void setFDLGroup(FDLGroup[] fdlGroup)
Sets the array of FDLGroup for SplitUnstructuredTopology


getVertexFileIndicesName

public java.lang.String getVertexFileIndicesName(int i)
Returns the vertexIndicesName


getCoordinateFileName

public java.lang.String getCoordinateFileName(int i)
Returns the coordinateName


getDataFileName

public java.lang.String getDataFileName(int i)
Returns the dataName


setPointInfoFDLFileName

public void setPointInfoFDLFileName(java.lang.String name)
Sets the FDL File name for SplitUnstructuredTopology


getPointInfoFDLFileName

public java.lang.String getPointInfoFDLFileName()
Returns the pointInfoFDLFileName


setVIndicesFDLFileName

public void setVIndicesFDLFileName(java.lang.String name)
Sets the FDL File name for SplitUnstructuredTopology


getVIndicesFDLFileName

public java.lang.String getVIndicesFDLFileName()
Returns the vIndicesFDLFileName


setCoordinateFDLFileName

public void setCoordinateFDLFileName(java.lang.String name)
Sets the FDL File name for SplitUnstructuredTopology


getCoordinateFDLFileName

public java.lang.String getCoordinateFDLFileName()
Returns the coordianteFDLFileName


setGBounds

public void setGBounds(GBounds b,
                       java.lang.String type)
Sets the geometry bounds


setISBounds

public void setISBounds(ISBounds b,
                        java.lang.String type)
Sets the topology bounds


getLatticeISBounds

public ISBounds getLatticeISBounds()
returns the Index Space Bounds from this builder or defaults to the topologyDS bounds


getTopologyISBounds

public ISBounds getTopologyISBounds()
returns the Index Space Bounds from this builder or defaults to the topologyDS bounds


getLatticeGBounds

public GBounds getLatticeGBounds()
returns the Index Space Bounds from this builder or defaults to the topologyDS bounds


getTopologyGBounds

public GBounds getTopologyGBounds()
returns the Index Space Bounds from this builder or defaults to the topologyDS bounds


getLatticeGeometryType

public int getLatticeGeometryType()

getTopologyGeometryType

public int getTopologyGeometryType()

setGeometryType

public void setGeometryType(int gtype,
                            java.lang.String type)

checkTopology

public void checkTopology()
check Topology's Geometry, if it is omitted, set it to the lattice's Geometry


makeLattice

public Lattice makeLattice()
instantiates an actual lattice


toString

public java.lang.String toString()
diagnostic utility method for dumping this class to a string

Overrides:
toString in class java.lang.Object