|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sra.gui.portfolioeal.ParameterParser
public class ParameterParser
This class is used to parse the parameters from a csv portfolio file. If you wish to use different parameters than what are already supported, all you have to do is add the string name of the parameter to the appropriate enum. If you wish to add a new parameter type, you need to create a new enum type, and follow the template of the other array creations. This should be changed in the future to allow for easier code updating. The enum values correspond to the type of parameter that should be created. This class is a singleton, so that the creation of the arrays only has to occur once, which could end up being a lengthy process with many enum values.
| Method Summary | |
|---|---|
static ParameterParser |
getParameterParser()
The singleton method. |
String |
getParameterType(String paramName)
This method looks through the arrays created from the enum values, and tries to match the paramName to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getParameterType(String paramName)
paramName - The name of the parameter to find the type of.
public static ParameterParser getParameterParser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||