Package hec.rss.model
Class RssNode
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.Node
hec.rss.model.RssNode
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,StreamReferenceHolder,TSLocation,TSLocation2,RssReturnStatusConstants,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- See Also:
-
Field Summary
Fields inherited from class hec.model.Node
_location, _manager, _station, _stream, _streamCoord, _streamIndex, _streamName, _tsrecordVector, INFLOW, OUTFLOWFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFields inherited from interface hec.rss.model.RssReturnStatusConstants
RTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFlowRule(FlowLimitOpRule rule) Add an operation rule to this nodeaddTSRecordProxy(int varId) Adds a TSRecordProxy by model variable Idvoidapplies specific hindcast data for computevoiddumps all ts proxies except input flowsvoiddispose()voidfinalize()getActiveTSProxies(Vector vec, int iotype) returns a vector of required input, or generated output TSRecordProxies used in the current alternative for nodes, assume all records are activegetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.returns a reference to this nodes oprule vector the calling routine must not edit this vector!!!hec.map.WorldPtdoubledouble[]getTSArray(String param) getTSDataSet(boolean isInput) returns the input or output TSData set currently associated with this loationdoublegetTSFactor(int varid) getTSRecordProxy(int varId) finds a TSRecordProxy for the given variable id in this TSLocationbooleanisActive()returns whether node is active for computationbooleanbooleanreadData(BufferedReader input) Retrieves the RssNode data from the specified BufferedReader.voidvoidsetActive(boolean active) sets whether node is active for computationvoidsetComputationPoint(hec.watershed.model.ComputationPoint cp) associates this node with a common compuation pointvoidsetDownstreamElement(Element elem) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetStreamStation(double stat) voidvoidsetUpstreamElement(Element elem) toString()booleanwriteData(BufferedWriter out) Methods inherited from class hec.model.Node
addTSRecord, assignParameter, getITSDataSet, getStreamIndex, getStreamName, getStreamStation, getTSArray, getTSArray, getTSArray, getTSContainer, getTSFactor, getTSRecordProxies, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxyByName, initialize, isWithinExtents, removeTSRecord, setLocation, setManager, setName, setStream, setStreamCoord, setStreamIndex, setStreamNameMethods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
RssNode
public RssNode() -
RssNode
-
-
Method Details
-
finalize
-
addFlowRule
Add an operation rule to this node -
getFlowRuleVector
returns a reference to this nodes oprule vector the calling routine must not edit this vector!!! -
applyHindcastData
applies specific hindcast data for compute -
clearTSProxyList
public void clearTSProxyList()dumps all ts proxies except input flows -
getActiveTSProxies
returns a vector of required input, or generated output TSRecordProxies used in the current alternative for nodes, assume all records are active -
getActiveOutputWQTSProxies
-
addTSRecordProxy
Adds a TSRecordProxy by model variable Id -
getTSRecordProxy
finds a TSRecordProxy for the given variable id in this TSLocation -
getTSFactor
public double getTSFactor(int varid) -
setComputationPoint
public void setComputationPoint(hec.watershed.model.ComputationPoint cp) associates this node with a common compuation point -
toString
-
isActive
public boolean isActive()returns whether node is active for computation -
setActive
public void setActive(boolean active) sets whether node is active for computation -
getContinuityElement
-
setSystem
-
getUpstreamElement
-
setUpstreamElement
-
getDownstreamElement
-
setDownstreamElement
-
removeElement
-
setStreamStation
public void setStreamStation(double stat) - Overrides:
setStreamStationin classNode
-
getStreamCoord
public double getStreamCoord()- Overrides:
getStreamCoordin classNode
-
getLocation
public hec.map.WorldPt getLocation()- Overrides:
getLocationin classNode
-
getStream
-
dispose
public void dispose() -
isDisposed
public boolean isDisposed() -
getTSDataSet
Description copied from interface:TSLocationreturns the input or output TSData set currently associated with this loation- Specified by:
getTSDataSetin interfaceTSLocation- Overrides:
getTSDataSetin classNode
-
getTSArray
- Overrides:
getTSArrayin classNode
-
readData
Retrieves the RssNode data from the specified BufferedReader. This method is called by RssSystem.readFile after encountering a RssNode line type. Control of the file processing is passed back to the RssSystem object once a RssNode End line type is found or if "Node" is not contained in the line type. The later case is an error condition.The data stream must have type=param formatting. The following types and parameters are defined.
Node Name= (String) name of the Node
Node TSRecord= (String) name, (String) parameter, (int) input flag
Node EndIf the input flag > 0, the TSRecord is in the input TSDataSet, otherwise the TSRecord is in the output TSDataSet.
-
writeData
-
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 classNode- 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 classNode- Parameters:
fld- The java field object representing the member field to be setfobj- The data to set in that field- Returns:
- returns true if successful
-