edu.iris.dmc.timeseries.model
Class Segment

java.lang.Object
  extended by edu.iris.dmc.timeseries.model.Segment
All Implemented Interfaces:
Serializable, Comparable<Segment>

public class Segment
extends Object
implements Serializable, Comparable<Segment>

See Also:
Serialized Form

Nested Class Summary
static class Segment.Type
           
 
Constructor Summary
Segment()
           
Segment(Segment.Type type, float sampleRate)
           
 
Method Summary
 int compareTo(Segment ts)
           
 boolean equals(Object obj)
           
 List<Double> getDoubleData()
           
 Timestamp getEndTime()
           
 Timestamp getExpectedNextSampleTime()
           
 List<Float> getFloatData()
           
 List<Integer> getIntData()
           
 int getSampleCount()
           
 float getSamplerate()
           
 List<Short> getShortData()
           
 Timestamp getStartTime()
           
 Segment.Type getType()
           
 int hashCode()
           
 void setSamplerate(float samplerate)
           
 void setTimeseries(Timeseries ts)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Segment

public Segment()

Segment

public Segment(Segment.Type type,
               float sampleRate)
Method Detail

getExpectedNextSampleTime

public Timestamp getExpectedNextSampleTime()

setTimeseries

public void setTimeseries(Timeseries ts)

getStartTime

public Timestamp getStartTime()

getEndTime

public Timestamp getEndTime()

getSamplerate

public float getSamplerate()

setSamplerate

public void setSamplerate(float samplerate)

getSampleCount

public int getSampleCount()

getType

public Segment.Type getType()

getIntData

public List<Integer> getIntData()

getShortData

public List<Short> getShortData()

getFloatData

public List<Float> getFloatData()

getDoubleData

public List<Double> getDoubleData()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Segment ts)
Specified by:
compareTo in interface Comparable<Segment>


Copyright © 2013. All Rights Reserved.