edu.iris.Fissures
Class Sampling

java.lang.Object
  extended by edu.iris.Fissures.Sampling
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.Streamable, org.omg.CORBA.portable.StreamableValue, org.omg.CORBA.portable.ValueBase

public abstract class Sampling
extends java.lang.Object
implements org.omg.CORBA.portable.StreamableValue

Represents the rate of periodic recording of data. In order to avoid the problems associated with division and roundoff, this keeps the information in its original form. Both the number of points and the time interval are stored. This does lead to many equivalent ways of expressing the same value. For instance 20 samples per second could be given as 20 points in one second or 1 sample in 0.05 seconds. However, using 30 samples in one second is better than .333333...

One should be careful to remember the n-1 rule. If there is a seismogram with 21 samples where the first occurs at 12:00:00.000 and the last occurs at 12:00:01.000, the sampling is 20 samples in one second, not 21 samples in one second!

See Also:
Serialized Form

Field Summary
 Quantity interval
           
 int numPoints
           
 
Constructor Summary
Sampling()
           
 
Method Summary
 void _read(org.omg.CORBA.portable.InputStream in)
           
 java.lang.String[] _truncatable_ids()
           
 org.omg.CORBA.TypeCode _type()
           
 void _write(org.omg.CORBA.portable.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numPoints

public int numPoints

interval

public Quantity interval
Constructor Detail

Sampling

public Sampling()
Method Detail

_truncatable_ids

public java.lang.String[] _truncatable_ids()
Specified by:
_truncatable_ids in interface org.omg.CORBA.portable.ValueBase

_read

public void _read(org.omg.CORBA.portable.InputStream in)
Specified by:
_read in interface org.omg.CORBA.portable.Streamable

_write

public void _write(org.omg.CORBA.portable.OutputStream out)
Specified by:
_write in interface org.omg.CORBA.portable.Streamable

_type

public org.omg.CORBA.TypeCode _type()
Specified by:
_type in interface org.omg.CORBA.portable.Streamable