edu.iris.Fissures.model
Class SamplingImpl

java.lang.Object
  extended by edu.iris.Fissures.Sampling
      extended by edu.iris.Fissures.model.SamplingImpl
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 class SamplingImpl
extends edu.iris.Fissures.Sampling

SamplingImpl.java Created: Wed Aug 11 11:02:00 1999

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.iris.Fissures.Sampling
interval, numPoints
 
Constructor Summary
protected SamplingImpl()
           
  SamplingImpl(int numPoints, TimeInterval interval)
           
 
Method Summary
static java.io.Serializable createEmpty()
           
static SamplingImpl createSamplingImpl(edu.iris.Fissures.Sampling samp)
           
 boolean equals(java.lang.Object o)
           
 QuantityImpl getFrequency()
          Gets the sample frequency.
 int getNumPoints()
           
 TimeInterval getPeriod()
          Gets the sample period.
 TimeInterval getTimeInterval()
           
 int hashCode()
           
protected  void setNumPoints(int n)
           
protected  void setTimeInterval(QuantityImpl i)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.iris.Fissures.Sampling
_read, _truncatable_ids, _type, _write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SamplingImpl

protected SamplingImpl()

SamplingImpl

public SamplingImpl(int numPoints,
                    TimeInterval interval)
Method Detail

createEmpty

public static java.io.Serializable createEmpty()

createSamplingImpl

public static SamplingImpl createSamplingImpl(edu.iris.Fissures.Sampling samp)

getPeriod

public TimeInterval getPeriod()
Gets the sample period. Returns a Quantity object that has Units of time, usually seconds.


getFrequency

public QuantityImpl getFrequency()
Gets the sample frequency. Returns a Quantity object that has units of 1/time, usually Hz.


getNumPoints

public int getNumPoints()

setNumPoints

protected void setNumPoints(int n)

getTimeInterval

public TimeInterval getTimeInterval()

setTimeInterval

protected void setTimeInterval(QuantityImpl i)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object