|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.util.NtoNMap<String,String>
org.opensha.commons.data.siteData.util.SiteDataTypeParameterNameMap
public class SiteDataTypeParameterNameMap
This class represents an N to N mapping between site data types and parameter names. If a mapping exists, then the given parameter can be set by the given site data type.
| Constructor Summary | |
|---|---|
SiteDataTypeParameterNameMap()
|
|
| Method Summary | |
|---|---|
void |
addMapping(String type,
String paramName)
Add a mapping |
Collection<String> |
getParameterNamesForType(String type)
Returns a list of all of the parameter names that can be set from this site data type |
Collection<String> |
getTypesForParameterName(String paramName)
Returns a list of all site data types that can set this parameter |
boolean |
isTypeApplicable(SiteDataValue<?> value,
Collection<ScalarIMR> imrs)
Returns true if the given IMR/Tectonic Region mapping has a parameter that can be set by this type. |
boolean |
isTypeApplicable(SiteDataValue<?> value,
ScalarIMR attenRel)
Returns true if the given attenuation relationship has a parameter that can be set by this type. |
boolean |
isTypeApplicable(String type,
Collection<? extends ScalarIMR> imrs)
Returns true if the given IMR/Tectonic Region mapping has a parameter that can be set by this type. |
boolean |
isTypeApplicable(String type,
ScalarIMR attenRel)
Returns true if the given attenuation relationship has a parameter that can be set by this type. |
boolean |
isValidMapping(SiteDataValue<?> value,
String paramName)
Returns true if the specified mapping exists |
boolean |
isValidMapping(String type,
String paramName)
Returns true if the specified mapping exists |
static void |
main(String[] args)
|
| Methods inherited from class org.opensha.commons.util.NtoNMap |
|---|
clear, containsMapping, getLefts, getLefts, getRights, getRights, isEmpty, put, putAll, remove, size |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SiteDataTypeParameterNameMap()
| Method Detail |
|---|
public void addMapping(String type,
String paramName)
type - paramName - public Collection<String> getTypesForParameterName(String paramName)
paramName -
public Collection<String> getParameterNamesForType(String type)
type -
public boolean isValidMapping(String type,
String paramName)
type - paramName -
public boolean isValidMapping(SiteDataValue<?> value,
String paramName)
type - paramName -
public boolean isTypeApplicable(String type,
ScalarIMR attenRel)
type - attenRel -
public boolean isTypeApplicable(String type,
Collection<? extends ScalarIMR> imrs)
type - imrMap -
public boolean isTypeApplicable(SiteDataValue<?> value,
ScalarIMR attenRel)
type - attenRel -
public boolean isTypeApplicable(SiteDataValue<?> value,
Collection<ScalarIMR> imrs)
type - imrMap -
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||