public class RssNode extends Node implements TSLocation, RssReturnStatusConstants
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTRTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM| Constructor and Description |
|---|
RssNode() |
RssNode(RssSystem sys,
int idx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFlowRule(FlowLimitOpRule rule)
Add an operation rule to this node
|
TSRecordProxy |
addTSRecordProxy(int varId)
Adds a TSRecordProxy by model variable Id
|
void |
applyHindcastData(HindcastData hd)
applies specific hindcast data for compute
|
void |
clearTSProxyList()
dumps all ts proxies except input flows
|
void |
dispose() |
void |
finalize() |
java.util.Vector |
getActiveTSProxies(java.util.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 active
|
Element |
getContinuityElement() |
Element |
getDownstreamElement() |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
java.util.Vector |
getFlowRuleVector()
returns a reference to this nodes oprule vector
the calling routine must not edit this vector!!!
|
hec.map.WorldPt |
getLocation() |
StreamElement |
getStream() |
double |
getStreamCoord() |
double[] |
getTSArray(java.lang.String param) |
TSDataSet |
getTSDataSet(boolean isInput)
returns the input or output TSData set currently associated with this loation
|
double |
getTSFactor(int varid) |
TSRecordProxy |
getTSRecordProxy(int varId)
finds a TSRecordProxy for the given variable id in this TSLocation
|
Element |
getUpstreamElement() |
boolean |
isActive()
returns whether node is active for computation
|
boolean |
isDisposed() |
boolean |
readData(java.io.BufferedReader input)
Retrieves the RssNode data from the specified BufferedReader.
|
void |
removeElement(Element e) |
void |
setActive(boolean active)
sets whether node is active for computation
|
void |
setComputationPoint(hec.watershed.model.ComputationPoint cp)
associates this node with a common compuation point
|
void |
setDownstreamElement(Element elem) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setStreamStation(double stat) |
void |
setSystem(RssSystem sys) |
void |
setUpstreamElement(Element elem) |
java.lang.String |
toString() |
boolean |
writeData(java.io.BufferedWriter out) |
addTSRecord, getITSDataSet, getStreamIndex, getStreamName, getStreamStation, getTSArray, getTSArray, getTSArray, getTSContainer, getTSFactor, getTSRecordProxies, getTSRecordProxy, getTSRecordProxy, getTSRecordProxy, getTSRecordProxyByName, initialize, isWithinExtents, removeTSRecord, setLocation, setManager, setName, setStream, setStreamCoord, setStreamIndex, setStreamNameaddModifiableListener, clone, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setValid, update, useRecursiveModifiedTestpublic RssNode()
public RssNode(RssSystem sys, int idx)
public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void addFlowRule(FlowLimitOpRule rule)
public java.util.Vector getFlowRuleVector()
public void applyHindcastData(HindcastData hd)
public void clearTSProxyList()
public java.util.Vector getActiveTSProxies(java.util.Vector vec,
int iotype)
public TSRecordProxy addTSRecordProxy(int varId)
public TSRecordProxy getTSRecordProxy(int varId)
public double getTSFactor(int varid)
public void setComputationPoint(hec.watershed.model.ComputationPoint cp)
public boolean isActive()
public void setActive(boolean active)
public Element getContinuityElement()
public void setSystem(RssSystem sys)
public Element getUpstreamElement()
public void setUpstreamElement(Element elem)
public Element getDownstreamElement()
public void setDownstreamElement(Element elem)
public void removeElement(Element e)
public void setStreamStation(double stat)
setStreamStation in class Nodepublic double getStreamCoord()
getStreamCoord in class Nodepublic hec.map.WorldPt getLocation()
getLocation in class Nodepublic StreamElement getStream()
public void dispose()
public boolean isDisposed()
public TSDataSet getTSDataSet(boolean isInput)
TSLocationgetTSDataSet in interface TSLocationgetTSDataSet in class Nodepublic double[] getTSArray(java.lang.String param)
getTSArray in class Nodepublic boolean readData(java.io.BufferedReader input)
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 End
If the input flag > 0, the TSRecord is in the input TSDataSet, otherwise the TSRecord is in the output TSDataSet.
readData in class Nodeinput - BufferedReader connected to the ASCII file containing the
RssSystem data.RssSystem.readFile(hec.io.Identifier)public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class Nodefld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class Nodefld - The java field object representing the member field to be setfobj - The data to set in that field