org.javaseis.grid
Class SeisDataType

java.lang.Object
  extended by org.javaseis.grid.SeisDataType

public class SeisDataType
extends java.lang.Object

Title: SeisDataType

Description: Data type for seismic arrays

Copyright: Copyright (c) 2005

Company: JavaSeis.org

Version:
1.0
Author:
Chuck Mosher

Field Summary
static int BYTE
           
static int DOUBLE
           
static int FLOAT
           
static int INT
           
static int LONG
           
static int OBJECT
           
static int SHORT
           
static int UNKNOWN
           
 
Constructor Summary
SeisDataType(int type)
          Construct a new data type with an element count of 1
SeisDataType(int type, int count)
          Construct a new array data type
SeisDataType(java.lang.Object object)
          Construct a new data type with an element count of 1
SeisDataType(java.lang.Object object, int count)
          Construct a new data type with an element count of 1
 
Method Summary
 SeisDataType clone()
          Return a copy of this data type
 int getCount()
          Return number of elements that make up this sample
 int getLength()
          Return length in bytes of data sample
 java.lang.Class getObjectClass()
          Return a the class type of the objects stored in this data type
 int getType()
          Return data sample type
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BYTE

public static final int BYTE
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

INT

public static final int INT
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

OBJECT

public static final int OBJECT
See Also:
Constant Field Values

SHORT

public static final int SHORT
See Also:
Constant Field Values

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values
Constructor Detail

SeisDataType

public SeisDataType(int type)
Construct a new data type with an element count of 1

Parameters:
type - must match one of the constant types for this class

SeisDataType

public SeisDataType(int type,
                    int count)
Construct a new array data type

Parameters:
type - must match one of the primitive types
count - number of elements that make up each "sample"

SeisDataType

public SeisDataType(java.lang.Object object)
Construct a new data type with an element count of 1

Parameters:
type - must match one of the constant types for this class

SeisDataType

public SeisDataType(java.lang.Object object,
                    int count)
Construct a new data type with an element count of 1

Parameters:
type - must match one of the constant types for this class
Method Detail

clone

public SeisDataType clone()
Return a copy of this data type

Overrides:
clone in class java.lang.Object
Returns:
copy of this data type

getCount

public int getCount()
Return number of elements that make up this sample

Returns:
number of elements

getLength

public int getLength()
Return length in bytes of data sample

Returns:
length in bytes

getObjectClass

public java.lang.Class getObjectClass()
Return a the class type of the objects stored in this data type

Returns:
Class of the objects in this data type

getType

public int getType()
Return data sample type

Returns:
sample type