edu.unh.sdb.lattice
Class FileSplitterCellGroup

java.lang.Object
  extended by edu.unh.sdb.lattice.CellGroup
      extended by edu.unh.sdb.lattice.FileCellGroup
          extended by edu.unh.sdb.lattice.FileSplitterCellGroup

public class FileSplitterCellGroup
extends FileCellGroup


Nested Class Summary
protected  class FileSplitterCellGroup.AList
           
 
Field Summary
protected  RecordDescriptor borrowedCellRD
           
protected  java.util.ArrayList borrowedCells
           
protected  java.lang.String borrowedTempVIndicesName
           
protected  OneDDataSink borrowedTempVIndicesSink
           
protected  boolean havePendingCell
           
protected  boolean isOwner
           
protected  int numBorrowedCells
           
protected  int numOwnedCells
           
protected  java.util.ArrayList ownedCells
           
protected  java.lang.String ownedTempVIndicesName
           
protected  OneDDataSink ownedTempVIndicesSink
           
protected  CellID pendingCellOwner
           
protected  RecordDescriptor pointInfoRD
           
protected  int[] vIndices
           
protected  RecordDescriptor vIndicesRD
           
 
Fields inherited from class edu.unh.sdb.lattice.FileCellGroup
backedByFile, coordsRS, dataRS, inMemory, vIndexFdlName, vIndicesRS, vInfoFdlName
 
Fields inherited from class edu.unh.sdb.lattice.CellGroup
bounds, dimensionality, numCells
 
Constructor Summary
FileSplitterCellGroup(GBounds bounds, RecordDescriptor pointInfoRD, java.lang.String vIndicesFdlName, RecordSpec vIndicesRS, java.lang.String pointInfoFdlName, RecordSpec pointRS, RecordSpec dataRS, IndexSpaceID partitionID)
           
 
Method Summary
 void doneRegistering()
           
 void empty()
           
 Cell findEnclosingCell(Point p)
           
 int getNumCells()
           
 int readCells()
           
 boolean register(TriangleCell cell)
           
 boolean register(TriangleCell cell, edu.unh.sdb.lattice.OwnerInfo r)
           
 java.lang.String toString()
          Return a String representing the object.
 java.lang.String toString(java.lang.String indent)
          Return a String representing the object indented by the argument string.
 int writeCells(java.lang.String baseFileName)
           
protected  int writeTriangles(java.util.ArrayList triangles, OneDDataSink vIndicesSink, OneDDataSink pointGeomSink, OneDDataSink vertexDataSink, FileSplitterCellGroup.AList vertexList, int currentIndex)
           
 
Methods inherited from class edu.unh.sdb.lattice.FileCellGroup
inMemory
 
Methods inherited from class edu.unh.sdb.lattice.CellGroup
dim, setNumCells
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ownedCells

protected java.util.ArrayList ownedCells

borrowedCells

protected java.util.ArrayList borrowedCells

numBorrowedCells

protected int numBorrowedCells

numOwnedCells

protected int numOwnedCells

vIndices

protected int[] vIndices

havePendingCell

protected boolean havePendingCell

isOwner

protected boolean isOwner

pendingCellOwner

protected CellID pendingCellOwner

pointInfoRD

protected RecordDescriptor pointInfoRD

borrowedCellRD

protected RecordDescriptor borrowedCellRD

ownedTempVIndicesName

protected java.lang.String ownedTempVIndicesName

borrowedTempVIndicesName

protected java.lang.String borrowedTempVIndicesName

ownedTempVIndicesSink

protected OneDDataSink ownedTempVIndicesSink

borrowedTempVIndicesSink

protected OneDDataSink borrowedTempVIndicesSink

vIndicesRD

protected RecordDescriptor vIndicesRD
Constructor Detail

FileSplitterCellGroup

public FileSplitterCellGroup(GBounds bounds,
                             RecordDescriptor pointInfoRD,
                             java.lang.String vIndicesFdlName,
                             RecordSpec vIndicesRS,
                             java.lang.String pointInfoFdlName,
                             RecordSpec pointRS,
                             RecordSpec dataRS,
                             IndexSpaceID partitionID)
Method Detail

register

public boolean register(TriangleCell cell)

register

public boolean register(TriangleCell cell,
                        edu.unh.sdb.lattice.OwnerInfo r)

doneRegistering

public void doneRegistering()

findEnclosingCell

public Cell findEnclosingCell(Point p)
Specified by:
findEnclosingCell in class CellGroup

getNumCells

public final int getNumCells()
Overrides:
getNumCells in class CellGroup

writeCells

public int writeCells(java.lang.String baseFileName)
Specified by:
writeCells in class FileCellGroup

writeTriangles

protected int writeTriangles(java.util.ArrayList triangles,
                             OneDDataSink vIndicesSink,
                             OneDDataSink pointGeomSink,
                             OneDDataSink vertexDataSink,
                             FileSplitterCellGroup.AList vertexList,
                             int currentIndex)

readCells

public int readCells()

empty

public void empty()

toString

public java.lang.String toString()
Return a String representing the object.

Overrides:
toString in class CellGroup

toString

public java.lang.String toString(java.lang.String indent)
Return a String representing the object indented by the argument string.

Overrides:
toString in class CellGroup