public interface AmpConfig extends DataSetSeismogramReceptacle, TimeListener
Modifier and Type | Method and Description |
---|---|
void |
addListener(AmpListener listener)
addListener causes listener to receive updates when this
AmpConfig changes |
AmpEvent |
calculate() |
void |
fireAmpEvent()
fireAmpEvent makes the AmpConfig create a new AmpEvent
reflecting its current internal state and send it to all AmpListeners |
UnitRangeImpl |
getAmp() |
UnitRangeImpl |
getAmp(DataSetSeismogram seis) |
AmpConfigData[] |
getAmpData() |
AmpConfigData |
getAmpData(DataSetSeismogram seis) |
void |
removeListener(AmpListener listener)
removeListener causes listener to no longer receive updates from
this AmpConfig |
void |
shaleAmp(double shift,
double scale)
shaleAmp shifts then scales all the seismograms in the config. |
void |
shaleAmp(double shift,
double scale,
DataSetSeismogram[] seismos)
shaleAmp performs a shaleAmp on the seismograms in the array |
add, clear, contains, getSeismograms, remove, reset, reset
updateTime
void shaleAmp(double shift, double scale)
shaleAmp
shifts then scales all the seismograms in the config.
First, the shift value is used to move the amp range by shift
*amp range.
Then the scale value is used to adjust the high amp value so that the new amp range is
scale*amp range.
So, if shift = 1 and scale = 2, the shift is applied and the new low end on the amp range is equal to the
old high value. Then the range itself is modified to be two times its original size. The new
range starts at the old low end and is twice as wide
An adjustment of shift = 0, scale = 1 will leave the seismograms unchanged. A scale value must
be greater than 0, or it will reduce the range to nothing.shift
- the percentage of current amp range by which the seismograms
will be shiftedscale
- the percentage of the current amp range that will exist after
the high end is adjustedvoid shaleAmp(double shift, double scale, DataSetSeismogram[] seismos)
shaleAmp
performs a shaleAmp on the seismograms in the arrayvoid addListener(AmpListener listener)
addListener
causes listener to receive updates when this
AmpConfig changesvoid removeListener(AmpListener listener)
removeListener
causes listener to no longer receive updates from
this AmpConfigvoid fireAmpEvent()
fireAmpEvent
makes the AmpConfig create a new AmpEvent
reflecting its current internal state and send it to all AmpListenersAmpEvent calculate()
AmpConfigData getAmpData(DataSetSeismogram seis)
AmpConfigData[] getAmpData()
UnitRangeImpl getAmp()
UnitRangeImpl getAmp(DataSetSeismogram seis)