org.opensha.sha.earthquake.rupForecastImpl.step
Class STEP_AlaskanPipeForecast

java.lang.Object
  extended by org.opensha.sha.earthquake.AbstractERF
      extended by org.opensha.sha.earthquake.rupForecastImpl.step.STEP_AlaskanPipeForecast
All Implemented Interfaces:
Serializable, Comparable<BaseERF>, Iterable<ProbEqkSource>, EventListener, Named, XMLSaveable, ParameterChangeListener, TimeSpanChangeListener, BaseERF, ERF

public class STEP_AlaskanPipeForecast
extends AbstractERF
implements ParameterChangeListener

Title: STEP_EqkRupForecast

Description:

Copyright: Copyright (c) 2002

Company:

Version:
1.0
Author:
:Edward Field
See Also:
Serialized Form

Field Summary
static String NAME
           
 
Fields inherited from class org.opensha.sha.earthquake.AbstractERF
adjustableParams, parameterChangeFlag, timeSpan, XML_METADATA_NAME
 
Constructor Summary
STEP_AlaskanPipeForecast()
          No argument constructor
 
Method Summary
 String getName()
          Return the name for this class
 int getNumSources()
          Get the number of earthquake sources
 ProbEqkSource getSource(int iSource)
          Returns the ith earthquake source
 ArrayList getSourceList()
          Get the list of all earthquake sources.
 Iterator getSourcesIterator()
          Return iterator over all the earthquake sources
static void main(String[] args)
           
 void parameterChange(ParameterChangeEvent event)
          This is the main function of this interface.
 void setTimeSpan(TimeSpan timeSpan)
          This method sets the time-span field
 void updateForecast()
          update the forecast
 
Methods inherited from class org.opensha.sha.earthquake.AbstractERF
baseERF_FromXML, baseERF_ToXML, compareTo, drawRandomEventSet, fromXMLMetadata, getAdjustableParameterList, getApplicableRegion, getIncludedTectonicRegionTypes, getNumRuptures, getParameter, getRupture, getRuptureClone, getSourceClone, getTimeSpan, iterator, setParameter, setParameter, setParameterChangeFlag, timeSpanChange, toXMLMetadata, updateAndSaveForecast
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static String NAME
Constructor Detail

STEP_AlaskanPipeForecast

public STEP_AlaskanPipeForecast()
No argument constructor

Method Detail

setTimeSpan

public void setTimeSpan(TimeSpan timeSpan)
This method sets the time-span field

Specified by:
setTimeSpan in interface BaseERF
Overrides:
setTimeSpan in class AbstractERF
Parameters:
time -

getSource

public ProbEqkSource getSource(int iSource)
Returns the ith earthquake source

Specified by:
getSource in interface ERF
Parameters:
iSource - : index of the source needed
Returns:
the source at idx

getNumSources

public int getNumSources()
Get the number of earthquake sources

Specified by:
getNumSources in interface ERF
Returns:
integer

getSourcesIterator

public Iterator getSourcesIterator()
Return iterator over all the earthquake sources

Returns:
Iterator over all earhtquake sources

getSourceList

public ArrayList getSourceList()
Get the list of all earthquake sources.

Specified by:
getSourceList in interface ERF
Overrides:
getSourceList in class AbstractERF
Returns:
ArrayList of Prob Earthquake sources

getName

public String getName()
Return the name for this class

Specified by:
getName in interface Named
Returns:
: return the name for this class

updateForecast

public void updateForecast()
update the forecast

Specified by:
updateForecast in interface BaseERF

parameterChange

public void parameterChange(ParameterChangeEvent event)
This is the main function of this interface. Any time a control paramater or independent paramater is changed by the user in a GUI this function is called, and a paramater change event is passed in. This sets the flag to indicate that the sources need to be updated

Specified by:
parameterChange in interface ParameterChangeListener
Overrides:
parameterChange in class AbstractERF
Parameters:
event -

main

public static void main(String[] args)