edu.sc.seis.fissuresUtil.display.registrar
Interface AmpConfig

All Superinterfaces:
DataSetSeismogramReceptacle, java.util.EventListener, TimeListener
All Known Implementing Classes:
BasicAmpConfig, IndividualizedAmpConfig, RMeanAmpConfig

public interface AmpConfig
extends DataSetSeismogramReceptacle, TimeListener

AmpConfigs calculate the amp ranges for a given set of seismograms based on a certain rule. See BasicAmpConfig or RMeanAmpConfig for implementations of a couple rules. Created: Tue Aug 27 14:48:03 2002


Method Summary
 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
 edu.iris.Fissures.model.UnitRangeImpl getAmp()
           
 edu.iris.Fissures.model.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
 
Methods inherited from interface edu.sc.seis.fissuresUtil.display.registrar.DataSetSeismogramReceptacle
add, clear, contains, getSeismograms, remove, reset, reset
 
Methods inherited from interface edu.sc.seis.fissuresUtil.display.registrar.TimeListener
updateTime
 

Method Detail

shaleAmp

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.

Parameters:
shift - the percentage of current amp range by which the seismograms will be shifted
scale - the percentage of the current amp range that will exist after the high end is adjusted

shaleAmp

void shaleAmp(double shift,
              double scale,
              DataSetSeismogram[] seismos)
shaleAmp performs a shaleAmp on the seismograms in the array


addListener

void addListener(AmpListener listener)
addListener causes listener to receive updates when this AmpConfig changes


removeListener

void removeListener(AmpListener listener)
removeListener causes listener to no longer receive updates from this AmpConfig


fireAmpEvent

void fireAmpEvent()
fireAmpEvent makes the AmpConfig create a new AmpEvent reflecting its current internal state and send it to all AmpListeners


calculate

AmpEvent calculate()

getAmpData

AmpConfigData getAmpData(DataSetSeismogram seis)

getAmpData

AmpConfigData[] getAmpData()

getAmp

edu.iris.Fissures.model.UnitRangeImpl getAmp()

getAmp

edu.iris.Fissures.model.UnitRangeImpl getAmp(DataSetSeismogram seis)