|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javaseis.io.Seisio.TraceMap
protected class Seisio.TraceMap
The TraceMap class provides mapping support for the JavaSeisFileIO class.
| Field Summary | |
|---|---|
protected int |
_framesPerVolume
|
protected boolean |
_isChanged
|
protected int[] |
_traceMapArray
|
protected int |
_volumeIndex
|
| Constructor Summary | |
|---|---|
Seisio.TraceMap(int framesPerVolume)
Constructs an instance of TraceMap. |
|
| Method Summary | |
|---|---|
protected void |
assertAllValuesInitialized()
Asserts that all trace map values have been initialized (i.e. |
protected void |
checkVolumeIndex()
Checks for valid volume index. |
int |
get(int frameIndex)
Gets the trace map value at the specified frame index. |
int[] |
getTraceMapArray()
|
boolean |
hasValue(int frameIndex)
Checks for valid trace map value at the specified frame index. |
void |
intializeTraceMapOnDisk()
Initialize the trace map on disk Sets all values in the map to zero |
void |
put(int frameIndex,
int numTraces)
Puts the trace map value at the specified frame index. |
void |
read(int volumeIndex)
Reads the trace map from disk. |
void |
reInitialize()
Re-initializes the trace map array. |
void |
setVolumeIndex(int volumeIndex)
Sets the volume index, flushing to current map buffer. |
void |
writeFrame()
Writes the trace map to disk for a single frame. |
void |
writeMap()
Writes the trace map to disk for the current volume. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int _framesPerVolume
protected boolean _isChanged
protected int[] _traceMapArray
protected int _volumeIndex
| Constructor Detail |
|---|
public Seisio.TraceMap(int framesPerVolume)
framesPerVolume - The number of frames per volume.| Method Detail |
|---|
protected void assertAllValuesInitialized()
protected void checkVolumeIndex()
public int get(int frameIndex)
frameIndex - The frame index to check.
public int[] getTraceMapArray()
public boolean hasValue(int frameIndex)
frameIndex - The frame index to check.
public void intializeTraceMapOnDisk()
throws SeisException
SeisException
public void put(int frameIndex,
int numTraces)
frameIndex - The frame index to check.numTraces - The trace map value (i.e. number of traces in the frame) to set.
public void read(int volumeIndex)
throws SeisException
volumeIndex - The volume index of the trace map to read.
SeisException - Thrown on read errors.public void reInitialize()
public void setVolumeIndex(int volumeIndex)
throws SeisException
SeisException - Thrown on mapping errors.
public void writeFrame()
throws SeisException
SeisException - Thrown on write errors.
public void writeMap()
throws SeisException
SeisException - Thrown on write errors.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||