public class AmpConfigData extends java.lang.Object implements SeismogramContainerListener
Constructor and Description |
---|
AmpConfigData(DataSetSeismogram seismo,
AmpConfig parent) |
Modifier and Type | Method and Description |
---|---|
double |
addScale(double newScale)
addScale adds this scale to the existing scale after
scaling it by the existing scale |
double |
addShift(double newShift)
addShift adds the new shift to the current shift scaled by
the amount the data is already scaled |
DataSetSeismogram |
getDSS() |
SeismogramIterator |
getIterator() |
edu.iris.Fissures.model.UnitRangeImpl |
getRange()
getRange returns the current range shaled by the current
scale and shift |
double |
getScale() |
static DataSetSeismogram[] |
getSeismograms(AmpConfigData[] ampData) |
double |
getShift() |
MicroSecondTimeRange |
getTime()
getTime is an accessor method for the time this range
describes |
boolean |
hasNewData() |
static boolean |
isAllFromSameSite(AmpConfigData[] ampData) |
void |
reset()
sets the shift to 0, scale to 1 and clears the calculation indices
|
boolean |
setRange(edu.iris.Fissures.model.UnitRangeImpl newRange)
setRange updates the data with a new clean range and
invalidates the old shaled range if the new range is different than the
old range |
void |
setScale(double newScale)
setScale clears any existing scale and sets it to the new
scale |
void |
setShift(double newShift)
setShift clears out the current shift and makes it equal
to the newShift |
boolean |
setTime(MicroSecondTimeRange newRange)
setTime sets the time for this range |
edu.iris.Fissures.model.UnitRangeImpl |
shale(double shift,
double scale)
shale shales the currently held clean range by the shift
and scale passed in addition to any shift or scale already held by the
Data |
edu.iris.Fissures.model.UnitRangeImpl |
shale(double shift,
double scale,
edu.iris.Fissures.model.UnitRangeImpl range)
Sets the clean range to be the passed range, and then shales it by the
values given in additon to any alredy held shift and scale.
|
java.lang.String |
toString() |
void |
updateData() |
public AmpConfigData(DataSetSeismogram seismo, AmpConfig parent)
public void updateData()
updateData
in interface SeismogramContainerListener
public SeismogramIterator getIterator()
public boolean hasNewData()
public DataSetSeismogram getDSS()
public boolean setRange(edu.iris.Fissures.model.UnitRangeImpl newRange)
setRange
updates the data with a new clean range and
invalidates the old shaled range if the new range is different than the
old rangenewRange
- the new clean rangepublic edu.iris.Fissures.model.UnitRangeImpl shale(double shift, double scale)
shale
shales the currently held clean range by the shift
and scale passed in addition to any shift or scale already held by the
Datashift
- additional shift for this rangescale
- additional shale for this rangepublic edu.iris.Fissures.model.UnitRangeImpl shale(double shift, double scale, edu.iris.Fissures.model.UnitRangeImpl range)
shift
- additional shiftscale
- additional shalerange
- the new clean rangepublic edu.iris.Fissures.model.UnitRangeImpl getRange()
getRange
returns the current range shaled by the current
scale and shiftpublic MicroSecondTimeRange getTime()
getTime
is an accessor method for the time this range
describespublic boolean setTime(MicroSecondTimeRange newRange)
setTime
sets the time for this rangenewRange
- the new time rangepublic double getShift()
public void setShift(double newShift)
setShift
clears out the current shift and makes it equal
to the newShiftnewShift
- the new shift for the datapublic double addShift(double newShift)
addShift
adds the new shift to the current shift scaled by
the amount the data is already scalednewShift
- the amount of shift to be added in percentage of display
shiftedpublic double getScale()
public void setScale(double newScale)
setScale
clears any existing scale and sets it to the new
scalenewScale
- the new scale valuepublic double addScale(double newScale)
addScale
adds this scale to the existing scale after
scaling it by the existing scalenewScale
- a double describing the percentage of the current display the
new scale will equalpublic void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public static DataSetSeismogram[] getSeismograms(AmpConfigData[] ampData)
public static boolean isAllFromSameSite(AmpConfigData[] ampData)