Package hec.rss.model.globalvariable
Class ExternalGlobalVariable
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.globalvariable.BaseGlobalVariable
hec.rss.model.globalvariable.ExternalGlobalVariable
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,GlobalVariable,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- See Also:
-
Field Summary
Fields inherited from class hec.rss.model.globalvariable.BaseGlobalVariable
_altGvData, _networkFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the location of the external datagets a description of the type of the global variableget the GlobalVariable's data type definitionget the ExternalDataLocation that's been assigned to this ExternalGlobalVariablegetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.get the GlobalVariable's Networkget the Parameter type for the GlobalVariableget the source of the external datagetType()voidoutputReport(AlternativeInputReport report, org.jdom.Element myElem) add the external global variable information to the alternative reportvoidsetExternalDataDefinition(ExternalDataType dataDefinition) booleansetFieldObject(Field fld, Object obj) This allows access to fields withing the implementing object to set there data.voidsetParameterType(String paramType) set the ParameterType for the GlobalVariableMethods inherited from class hec.rss.model.globalvariable.BaseGlobalVariable
clone, finalizeCompute, getComputeMsg, getIsDataLocation, getUsageType, hasValidValue, initializeGv, isInput, printToComputeLog, printToComputeWindow, setGlobalVariableData, setInput, setIsDataLocationMethods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.rss.model.globalvariable.GlobalVariable
getDescription, getIndex, getName, setDescription, setIndex, setName
-
Constructor Details
-
ExternalGlobalVariable
public ExternalGlobalVariable() -
ExternalGlobalVariable
-
-
Method Details
-
getType
-
getDescriptiveText
Description copied from interface:GlobalVariablegets a description of the type of the global variable- Returns:
- descriptive text
-
getNetwork
get the GlobalVariable's Network- Specified by:
getNetworkin interfaceGlobalVariable- Overrides:
getNetworkin classBaseGlobalVariable- Returns:
- the GlobalVariable's network
-
outputReport
add the external global variable information to the alternative report- Specified by:
outputReportin interfaceGlobalVariable- Overrides:
outputReportin classBaseGlobalVariable- Parameters:
report- the alternative reportmyElem- the element for this global variable
-
getExternalDataDefinition
get the GlobalVariable's data type definition- Returns:
- the GlobalVariable's data type definition
-
setExternalDataDefinition
-
setParameterType
set the ParameterType for the GlobalVariable- Parameters:
paramType-
-
getParameterType
get the Parameter type for the GlobalVariable- Returns:
- the Parameter type
-
getDataLocation
get the location of the external data- Returns:
-
getSource
get the source of the external data- Returns:
-
getExternalDataLocation
get the ExternalDataLocation that's been assigned to this ExternalGlobalVariable- Returns:
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Overrides:
getFieldObjectin classBaseGlobalVariable- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin interfaceFieldAccessor- Overrides:
setFieldObjectin classBaseGlobalVariable- Parameters:
fld- The java field object representing the member field to be setobj- The data to set in that field- Returns:
- returns true if successful
-