Package edu.sc.seis.sod.status
Class EventFormatter
java.lang.Object
edu.sc.seis.sod.status.Template
edu.sc.seis.sod.status.EventFormatter
- All Implemented Interfaces:
EventTemplate
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionEventFormatter
(boolean filize) EventFormatter
(Element config) EventFormatter
(Element config, boolean filize) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
format
(double d) static EventFormatter
static String
getDefaultResult
(edu.sc.seis.fissuresUtil.cache.CacheEvent event) getFilizedName
(edu.sc.seis.fissuresUtil.cache.CacheEvent event) static String
getMag
(edu.sc.seis.fissuresUtil.cache.CacheEvent event) static edu.iris.Fissures.IfEvent.Origin
getOrigin
(edu.sc.seis.fissuresUtil.cache.CacheEvent event) static String
getRegionName
(edu.sc.seis.fissuresUtil.cache.CacheEvent event) getResult
(edu.sc.seis.fissuresUtil.cache.CacheEvent event) protected Object
getTemplate
(String tag, Element el) if this class has an template for this tag, it creates it using the passed in element and returns it.static EventFormatter
static EventFormatter
makeTime()
protected Object
textTemplate
(String text) returns an object of the template type that this class uses, and returns the passed in text when the getResult method of that template type is calledvoid
Methods inherited from class edu.sc.seis.sod.status.Template
getCommonTemplate, parse, parse, setUp
-
Constructor Details
-
EventFormatter
- Throws:
ConfigurationException
-
EventFormatter
- Throws:
ConfigurationException
-
EventFormatter
- Throws:
ConfigurationException
-
-
Method Details
-
makeTime
-
makeFilizer
-
getDefaultFormatter
-
getDefaultResult
-
textTemplate
Description copied from class:Template
returns an object of the template type that this class uses, and returns the passed in text when the getResult method of that template type is called- Specified by:
textTemplate
in classTemplate
-
getTemplate
Description copied from class:Template
if this class has an template for this tag, it creates it using the passed in element and returns it. Otherwise it should return the superclass implementation of the getCommonTemplate method. Though no harm will come from merely returning null, they won't benefit from the wisdom and extra tags provided by their elder classes.- Overrides:
getTemplate
in classTemplate
-
format
-
useDefaultConfig
public void useDefaultConfig() -
getResult
- Specified by:
getResult
in interfaceEventTemplate
-
getFilizedName
-
getMag
-
getOrigin
public static edu.iris.Fissures.IfEvent.Origin getOrigin(edu.sc.seis.fissuresUtil.cache.CacheEvent event) -
getRegionName
-