org.opensha.sha.cybershake.db
Class CybershakeSite

java.lang.Object
  extended by org.opensha.sha.cybershake.db.CybershakeSite
Direct Known Subclasses:
BatchSiteAddGUI.CybershakeCutoffSite

public class CybershakeSite
extends Object


Field Summary
 int id
           
 double lat
           
 double lon
           
 String name
           
 String short_name
           
static int TYPE_BROADBAND_STATION
           
static int TYPE_GRID_05_KM
           
static int TYPE_GRID_10_KM
           
static int TYPE_GRID_20_KM
           
 int type_id
           
static int TYPE_POI
           
static int TYPE_PRECARIOUS_ROCK
           
static int TYPE_TEST_SITE
           
 
Constructor Summary
CybershakeSite(double lat, double lon, String name, String short_name)
           
CybershakeSite(int id, double lat, double lon, String name, String short_name, int type_id)
           
 
Method Summary
 Location createLocation()
           
 String getFormattedName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_POI

public static final int TYPE_POI
See Also:
Constant Field Values

TYPE_PRECARIOUS_ROCK

public static final int TYPE_PRECARIOUS_ROCK
See Also:
Constant Field Values

TYPE_BROADBAND_STATION

public static final int TYPE_BROADBAND_STATION
See Also:
Constant Field Values

TYPE_TEST_SITE

public static final int TYPE_TEST_SITE
See Also:
Constant Field Values

TYPE_GRID_20_KM

public static final int TYPE_GRID_20_KM
See Also:
Constant Field Values

TYPE_GRID_10_KM

public static final int TYPE_GRID_10_KM
See Also:
Constant Field Values

TYPE_GRID_05_KM

public static final int TYPE_GRID_05_KM
See Also:
Constant Field Values

id

public int id

lat

public double lat

lon

public double lon

name

public String name

short_name

public String short_name

type_id

public int type_id
Constructor Detail

CybershakeSite

public CybershakeSite(int id,
                      double lat,
                      double lon,
                      String name,
                      String short_name,
                      int type_id)

CybershakeSite

public CybershakeSite(double lat,
                      double lon,
                      String name,
                      String short_name)
Method Detail

createLocation

public Location createLocation()

toString

public String toString()
Overrides:
toString in class Object

getFormattedName

public String getFormattedName()