org.opensha.commons.util.binFile
Class BinaryMesh2DCalculator

java.lang.Object
  extended by org.opensha.commons.util.binFile.BinaryMesh2DCalculator
Direct Known Subclasses:
GeolocatedRectangularBinaryMesh2DCalculator

public class BinaryMesh2DCalculator
extends Object


Nested Class Summary
static class BinaryMesh2DCalculator.DataType
           
static class BinaryMesh2DCalculator.MeshOrder
           
 
Field Summary
protected  long nx
           
protected  long ny
           
 
Constructor Summary
BinaryMesh2DCalculator(BinaryMesh2DCalculator.DataType numType, long nx, long ny)
           
 
Method Summary
 long calcFileIndex(long x, long y)
           
 long calcFileX(long pos)
           
 long calcFileY(long pos)
           
 long calcMeshIndex(long x, long y)
           
 long calcMeshX(long index)
           
 long calcMeshY(long index)
           
 long getMaxFilePos()
           
 BinaryMesh2DCalculator.MeshOrder getMeshOrder()
           
 long getNX()
           
 long getNY()
           
 BinaryMesh2DCalculator.DataType getType()
           
 void setMeshOrder(BinaryMesh2DCalculator.MeshOrder meshOrder)
           
 void setNX(int nx)
           
 void setNY(int ny)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nx

protected long nx

ny

protected long ny
Constructor Detail

BinaryMesh2DCalculator

public BinaryMesh2DCalculator(BinaryMesh2DCalculator.DataType numType,
                              long nx,
                              long ny)
Method Detail

calcMeshIndex

public long calcMeshIndex(long x,
                          long y)

calcFileX

public long calcFileX(long pos)

calcMeshX

public long calcMeshX(long index)

calcFileY

public long calcFileY(long pos)

calcMeshY

public long calcMeshY(long index)

calcFileIndex

public long calcFileIndex(long x,
                          long y)

getNX

public long getNX()

setNX

public void setNX(int nx)

getNY

public long getNY()

setNY

public void setNY(int ny)

getMaxFilePos

public long getMaxFilePos()

getMeshOrder

public BinaryMesh2DCalculator.MeshOrder getMeshOrder()

setMeshOrder

public void setMeshOrder(BinaryMesh2DCalculator.MeshOrder meshOrder)

getType

public BinaryMesh2DCalculator.DataType getType()