Class Element
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,TSLocation,PlotVariableConstants,RssModelVariableConstants,RssReturnStatusConstants,RssTSLocation,hec.watershed.res.model.PlottableObject,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- Direct Known Subclasses:
DiversionElement,JunctionElement,OutletGroupElement,ReservoirElement,ReservoirOutletElement,TimeStepRoutingElement
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields 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.PlotVariableConstants
PV_ELEVATION, PV_REGULATED_FLOW, PV_REGULATED_STAGE, PV_STORAGE, PV_TOTAL_RELEASE, PV_UNREGULATED_FLOW, PV_UNREGULATED_STAGEFields inherited from interface hec.rss.model.RssModelVariableConstants
CUMLOC_OUTPUT_DATA, GRPID_DIVERSION, GRPID_JUNCTION, GRPID_REACH, GRPID_RESERVOIR, HINDCAST_IDS, HOLDOUT_OUTPUT_DATA, INPUT_DATA, OUTPUT_DATA, PULSE_OUTPUT_DATA, UNREG_OUTPUT_DATA, VID_ADJPARAM_FLOW, VID_CAPACITY_FACTOR, VID_CTRLOUT_HINDFLW, VID_CTRLOUT_RELEASE, VID_DAM_LEAK, VID_DAM_RELEASE, VID_DIV_FLOW, VID_DIV_FLOW_ROUTED, VID_DIV_HINDFLW, VID_DIV_RELEASE, VID_DIVOUT_FLOW, VID_DIVOUT_FLOW_ROUTED, VID_ENERGYREQUIRED_TSINPUT, VID_FIRST, VID_FOREBAY_ELEV, VID_FOREBAY_HEADLOSS, VID_GATE_OPENING, VID_GATE_PERCENTOPEN, VID_JUNC_ELEV, VID_JUNC_FLOW_CUMLOC, VID_JUNC_FLOW_DIV, VID_JUNC_FLOW_HOLD, VID_JUNC_FLOW_IN, VID_JUNC_FLOW_LIMIT, VID_JUNC_FLOW_LOCAL, VID_JUNC_FLOW_PULSE, VID_JUNC_FLOW_REG, VID_JUNC_FLOW_UNREG, VID_JUNC_FLOW_VIOL, VID_JUNC_HINDFLOW, VID_JUNC_INFLOW, VID_JUNC_INFLOW_LOCAL_TOTAL, VID_JUNC_STAGE, VID_JUNC_STAGE_LIMIT, VID_JUNC_STAGE_REG, VID_JUNC_STAGE_UNREG, VID_JUNC_STAGE_VIOL, VID_LAST, VID_NODE_FLOW, VID_NODE_HINDFLW, VID_NODE_HINDSTG, VID_NODE_KNOWNFLOW, VID_NODE_STAGE, VID_OPCTRL_CONSTRAINTID, VID_OPCTRL_DECISION, VID_OPCTRL_MAXLIMIT, VID_OPCTRL_MINLIMIT, VID_OPCTRL_RULEID, VID_OPCTRL_ZONEID, VID_OPRULE_FLOW_SPACE, VID_OPRULE_MAX, VID_OPRULE_MAX_STAGE, VID_OPRULE_MIN, VID_OPRULE_MIN_STAGE, VID_OPRULE_PRIORITY, VID_OPRULE_ROUTE_LAG, VID_OPRULE_ROUTE_MAXOFFSET, VID_OPRULE_ROUTE_MINOFFSET, VID_OPRULE_SPEC, VID_OPRULE_STOR_BAL, VID_OPRULE_STOR_BAL_INDEX, VID_OPRULE_VIOL_ELEV, VID_OPRULE_VIOL_FLOW, VID_OPRULE_VIOL_STAGE, VID_OPRULE_VIOL_STOR, VID_OPRULE_WQCD_ELEV, VID_OPRULEFL_CUMLOC, VID_OPRULETS_TSINPUT, VID_OPSET_ACTIVEZONE, VID_OPSET_GC_ELEV, VID_OPSET_GC_STOR, VID_OPSET_KNOWNZONEELEV, VID_OPSET_PROJECTEDELEV, VID_OPSET_ZONEELEV, VID_OPSET_ZONESTOR, VID_OUTGRP_RELEASE, VID_POOL_AREA, VID_POOL_ELEV, VID_POOL_ELEV_EST, VID_POOL_ELEVROC, VID_POOL_EVAP, VID_POOL_FLOWINTOSTOR, VID_POOL_HINDELEV, VID_POOL_HINDSTOR, VID_POOL_HOLDOUT, VID_POOL_INFLOW, VID_POOL_INPUTEVAP, VID_POOL_NETINFLOW, VID_POOL_OUTFLOW, VID_POOL_OUTFLOW_EST, VID_POOL_SEEP, VID_POOL_STOR, VID_PULSE_BACKQ, VID_PULSE_PULSEQ, VID_PUMP_FLOWAVG, VID_PUMP_VOL, VID_PUMPRULE_FLOWAVG, VID_PUMPRULE_FLOWAVG_CAP, VID_PUMPRULE_FLOWINST, VID_PUMPRULE_FLOWINST_CAP, VID_PUMPRULE_HOURS, VID_PUMPRULE_HOURS_CAP, VID_PUMPRULE_NUMPUMP, VID_PUMPRULE_NUMPUMP_CAP, VID_PUMPRULE_UNITHOURS, VID_PUMPRULE_UNITHOURS_CAP, VID_PUMPRULE_VOL, VID_PUMPRULE_VOL_CAP, VID_PWR_CAPABILITY, VID_PWR_EFF, VID_PWR_ENGYGEN, VID_PWR_ENGYPATTERN, VID_PWR_ENGYPERGEN, VID_PWR_ENGYPERREQD, VID_PWR_ENGYREQD, VID_PWR_ENGYVIOL, VID_PWR_FLWPWR, VID_PWR_HDPWR, VID_PWR_HYDLSS, VID_PWR_MAXCAPACITY, VID_PWR_PER_BALGEN, VID_PWR_PER_GCGEN, VID_PWR_PER_MINPUMPGEN, VID_PWR_PER_MINRELGEN, VID_PWR_PER_POWGEN, VID_PWR_PER_PUMPGEN, VID_PWR_PLNTFAC, VID_PWR_PWRCAP, VID_PWR_REQUIRED, VID_PWR_SPILL, VID_PWR_VIOL, VID_RCH_SEEP, VID_REACH_FLOW_CUMLOC, VID_REACH_FLOW_IN, VID_REACH_FLOW_REG, VID_REACH_FLOW_UNREG, VID_RES_GCRELEASE, VID_RES_HOLDOUT, VID_RES_RELEASE, VID_SPILL_FLOW, VID_SPILL_HINDFLOW, VID_STATE_VAR, VID_STATE_VAR_HIND, VID_TAIL_ELEV, VID_UNCTOUT_FLOW, VID_UNCTOUT_HINDFLW, VID_WA_ACCOUNT_DEMAND, VID_WA_ACCOUNT_INFLOW, VID_WA_CHARGES, VID_WA_CREDIT, VID_WA_CURRENT_MAX_VOLUME, VID_WA_CURRENT_VOLUME, VID_WA_HINDSTOR, VID_WA_LOSSES, VID_WA_PUMPBACK, VID_WA_RULE_DEMAND, VID_WA_SURPLUS, VID_WA_TRANSFERS, WQID_OFFSETFields inherited from interface hec.rss.model.RssReturnStatusConstants
RTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildElement(Element child) voidaddChildElementAt(Element child, int idx) voidadds a node to this elementvoidDeprecated.voidapplies specific hindcast data for computedoublecalcSeepageFlow(double flow) children()voidvoidvoiddumps all ts proxiesclone()clone methodintcomputeForecast(RunTimeWindow rtw, int computeType) performs a compute over the runtime window using forecast logicintcomputes a single forecast time stepintcomputeForecastStep(RunTimeStep rts, double[] xt, double[] et, int tcount) computes a single forecast time step with additional arguments containing an elevation trace over the time stepintcomputeHindcast(RunTimeWindow rtw, int computeType) performs a compute over the runtime window using hindcast logicintcomputes a single hindcast time stepdoublecomputeSubStepFlow(RunTimeStep rts, double xt, double et) computes a single forecast time step with additional arguments containing an elevation trace over the time stepvoidPerforms a deep copy that clones data of the given Element.protected ElementHotstartStatevoiddispose()dispose element and downstream nodesvoiddispose(boolean disposeAllNodes) Release references to other objectsbooleandownStreamFrom(Element element) This tests to see if this element is downstream of the passed in parameter element.findAdjParam(String fname, String param) findAdjParam(String elemName, String function, String param) findElement(String name) getActiveStateVariables(List svlist) returns a vector of state variables in physical parts of elementgetActiveTSProxies(Vector vec, int iotype) returns a vector of required input, or generated output TSRecordProxies used in the current alternative default implementation elements, assume all records are activegetChildElementAt(int i) intrequests vector of computed ts proxies from functionDeprecated.return the list of Default ModelVariables to be used by the default plotreturns the the elements name appended to its parents full namereturns all elements downstream of this elementreturns the first downstream node in the node listgetDownstreamNodes(List vec) returns all downstream nodes in the node list does not recurse through child elementsdoublereturns elevation for the given RunTimeStep at the upstream end of this element.getElement(int idx) returns the child element with the given index, else returns nullgetElementByName(String name) returns the child element with the given index, else returns nullgetElementsByClass(Class eclass, Vector vec) returns a vector of child elements of the given class or the elements function is of the given classintget the unique element type Id.provide access to the child element vector - use carefully!getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.returns the forebay head loss object, may return nullbooleangetForecastEquation(RunTime runtime) Deprecated.returns the the elements name appended to its parents full namevoidgetHindcastDataList(Vector hvec) compiles a vector of required hindcast databooleangetHindcastEquation(RunTime runtime) Deprecated.Takes a object of class Element, Function, RssNode, OpController, or OpRule and returns a unique string identifying that object pass request to RssSystem This should be a TSLocation methodgetLinkedElementList(int direction) return a new Listobject with either upstream (INFLOW) or downstream (OUTFLOW) linked elements getModelVariables(Vector variableList) getNode(int idx) intintgetNodeDir(int idx) getObjectForKeyString(String keystr) Takes a key string and returns the object of class Element, Function, Node, OpController, or OpRule Pass request to RssSystem This should be a TSLocation methodstatic intget the element object type id for the object typevoidprotected StringGenerates a B Part that is used during storage to DSS when this function is saved.gets the immediate parent elementgetPlotTypeFile(String name) given the name of a system PlotType return a File for itdoublereturns elevation for one time step prior to the given RunTimeStep at the upstream end of this element.hec.map.WorldPtgetReleaseElements(List vec) Deprecated.returns the flow TSRecordProxies from upstream nodes on this elementReturns a List of RuleConnectivityRef objects identifying all rule references to other objects in the network.get the parent system of this elementwalks over all children and their functions collecting a list of TailwaterElevation Objectsgets the top most parent elementget the name of the top most parent elementgetTSDataSet(boolean isInput) returns the input or output TSData set currently associated with this loationDeprecated.getTSRecordProxy(int varid) gets TSRecordProxy from its function or child elementsgetTSRecordProxy(String param) Deprecated.getTSRecords(ModelVariable modelVariable, Vector vec) getTSRecords(ModelVariable modelVariable, Vector vec, Vector runs) intreturns the first upstream node in the node listgetUpstreamNodes(List<RssNode> vec) returns all upstream nodes in the node list does not recurse through child elementsreturns the water control device, may return nullbooleanhasElementsOfClass(Class eclass) returns a vector of child elements of the given class or the elements function is of the given classbooleanreturns true if the element has a forebay head loss object, otherwise returns false.booleanprotected voidimportObservedData(Element fromElem, StringBuffer results) booleaninitialize prior to Forecast computation loopbooleanPrepares this run for post processing in the ResSim Simulation Module.booleaninitialize prior to hindcast computation loopbooleaninitialize(RunTimeWindow rtw) initialize prior to a computeprotected voidinitTSVals(int istep) set estimated values for un-initialized time series variables at the given time stepbooleanisActive()returns whether element is active for computationbooleanisDirty()returns whether element is dirty and needs to be recomputedbooleanChecks if this object can be thrown awaybooleanbooleanreadData(BufferedReader input) Deprecated.voidvoidremoveChild(Element child) voidremoveNode(RssNode node) voidreset parent element assignment to all child elementsvoidrestoreElementState(int stateid) restore the state of the element and its function matching the given identifierbooleanrestoreHotstartState(HotstartState parentState) voidsaveElementState(int stateid) save the current state of the element and its function with the given identifiervoidsaveHotstartState(HotstartState parentState, int stateId) voidsetActive(boolean active) Sets whether element is active for computation.voidsetActive(boolean active, boolean recurse) Sets whether element is active for computation.voidsetDirty(boolean dirty) Sets whether element is dirty and needs to be recomputed.booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetHasForebayHeadLoss(boolean b) creates or deletes a forebay head loss object based on the given boolean.voidecho name change to nodes whose names are based on this elements name not needed any more?? with use of key strings??voidsetObsDataVector(Vector obsDataList) voidvoidcalled just before ascii serializationvoidsetWaterControlDevice(WaterControlDevice waterControlDevice) toString()toString method decodes key stringvoidloops through function and child elements telling them to update there sets of TSRecordProxies()voidupdateWQTSProxyList(List<ModelVariable> conList) update set of TSRecordProxies associated with Water QualitybooleanwriteData(BufferedWriter out) Deprecated.Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, 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
-
Field Details
-
RESERVIOR_ELEMENT_ID
public static final int RESERVIOR_ELEMENT_ID- See Also:
-
REACH_ELEMENT_ID
public static final int REACH_ELEMENT_ID- See Also:
-
JUNCTION_ELEMENT_ID
public static final int JUNCTION_ELEMENT_ID- See Also:
-
DIVERSION_ELEMENT_ID
public static final int DIVERSION_ELEMENT_ID- See Also:
-
DIVERTEDOUTLET_ELEMENT_ID
public static final int DIVERTEDOUTLET_ELEMENT_ID- See Also:
-
OUTFLOW
public static final int OUTFLOW- See Also:
-
INFLOW
public static final int INFLOW- See Also:
-
-
Constructor Details
-
Element
public Element() -
Element
-
-
Method Details
-
initTSVals
protected void initTSVals(int istep) set estimated values for un-initialized time series variables at the given time step- Parameters:
istep-
-
hasWaterControlDevice
public boolean hasWaterControlDevice() -
getWaterControlDevice
returns the water control device, may return null -
setWaterControlDevice
-
hasForebayHeadLoss
public boolean hasForebayHeadLoss()returns true if the element has a forebay head loss object, otherwise returns false. -
setHasForebayHeadLoss
public void setHasForebayHeadLoss(boolean b) creates or deletes a forebay head loss object based on the given boolean. if the forebay head loss object already exists, setHasForebayHeadLoss(true) has no effect. -
getForebayHeadLoss
returns the forebay head loss object, may return null -
getEffectiveElev
returns elevation for the given RunTimeStep at the upstream end of this element. Considers any "forebay" head loss associated with this and all parent elements For the first implementation, this method will only work for reservoirs and their child elements- Returns:
- double elevation or RMAConst.UNDEF_DOUBLE if elevation data not available
-
getPrevEffectiveElev
returns elevation for one time step prior to the given RunTimeStep at the upstream end of this element. Considers any "forebay" head loss associated with this and all parent elements For the first implementation, this method will only work for reservoirs and their child elements- Returns:
- double elevation or RMAConst.UNDEF_DOUBLE if elevation data not available
-
getTailwaterElevationObjects
walks over all children and their functions collecting a list of TailwaterElevation Objects- Parameters:
list- an existing List object or null- Returns:
- a List object containing TailwaterElevation Objects
-
getRuleConnectivityRefs
Returns a List of RuleConnectivityRef objects identifying all rule references to other objects in the network. The default implementation here retuns null (no references). The method is overriden by ReservoirElement, ReservoirOutletElement, and DiversionElement.- Returns:
- default implementation returns null
-
getObjectTypeId
get the element object type id for the object type- Returns:
- the element object type
-
toString
toString method decodes key string -
setupForSerialization
public void setupForSerialization()called just before ascii serialization -
cleanupFromDeSerialization
public void cleanupFromDeSerialization() -
getReleaseElements
Deprecated.returns a vector containing all elements belonging to and including this element that implement the ReleaseElement interface are release element to which rules can be attached -
getDisplayName
returns the the elements name appended to its parents full name- Overrides:
getDisplayNamein classNamedType
-
getOutputBPart
Generates a B Part that is used during storage to DSS when this function is saved.- Returns:
- String
-
getFullName
returns the the elements name appended to its parents full name -
getTopParentName
get the name of the top most parent element -
applyHindcastData
applies specific hindcast data for compute -
getHindcastDataList
compiles a vector of required hindcast data -
getOutletElementList
-
getOutletElementList
-
getChildElementCount
public int getChildElementCount() -
getChildElementAt
-
children
-
getUnitSystem
public int getUnitSystem() -
clone
clone method -
copyInto
Performs a deep copy that clones data of the given Element. This method is used by the reservoir editor. -
downStreamFrom
This tests to see if this element is downstream of the passed in parameter element.- Parameters:
element- The element to test if it is downstream of.- Returns:
- returns true if this element is downstream of the given element.
-
resetParentElement
public void resetParentElement()reset parent element assignment to all child elements -
isActive
public boolean isActive()returns whether element is active for computation -
setActive
public void setActive(boolean active) Sets whether element is active for computation. Also sets nodes computed by this element to the sam active or inactive state. -
setActive
public void setActive(boolean active, boolean recurse) Sets whether element is active for computation. Also sets nodes computed by this element to the sam active or inactive state. -
isDirty
public boolean isDirty()returns whether element is dirty and needs to be recomputed -
setDirty
public void setDirty(boolean dirty) Sets whether element is dirty and needs to be recomputed. -
getKeyStringForObject
Takes a object of class Element, Function, RssNode, OpController, or OpRule and returns a unique string identifying that object pass request to RssSystem This should be a TSLocation method -
getObjectForKeyString
Takes a key string and returns the object of class Element, Function, Node, OpController, or OpRule Pass request to RssSystem This should be a TSLocation method -
getTopParent
gets the top most parent element -
getParent
gets the immediate parent element -
setParentElement
-
addChildElement
-
addChildElementAt
-
removeChild
-
removeAllChildElements
public void removeAllChildElements() -
initialize
initialize prior to a compute -
initForPostProcessing
Prepares this run for post processing in the ResSim Simulation Module. This routing sets up all data model connectivity, but does not load time series arrays.- Returns:
- RTN_NOPROBLEM if successful
-
initHindcastLoop
initialize prior to hindcast computation loop -
initForecastLoop
initialize prior to Forecast computation loop -
saveElementState
public void saveElementState(int stateid) save the current state of the element and its function with the given identifier- Parameters:
stateid- identifier for the state
-
saveHotstartState
-
restoreHotstartState
-
createHotstartState
-
restoreElementState
public void restoreElementState(int stateid) restore the state of the element and its function matching the given identifier- Parameters:
stateid- identifier for the state
-
getSystem
get the parent system of this element -
getElementVector
provide access to the child element vector - use carefully! -
getElementsByClass
returns a vector of child elements of the given class or the elements function is of the given class -
hasElementsOfClass
returns a vector of child elements of the given class or the elements function is of the given class -
getElementByName
returns the child element with the given index, else returns null -
getElement
returns the child element with the given index, else returns null -
dispose
public void dispose()dispose element and downstream nodes -
dispose
public void dispose(boolean disposeAllNodes) Release references to other objects -
cleanVectors
public void cleanVectors() -
isNodeComputed
-
isDisposed
public boolean isDisposed()Checks if this object can be thrown away -
getNodeVector
-
getNodeDirVector
-
getDownstreamNode
returns the first downstream node in the node list -
getUpstreamNode
returns the first upstream node in the node list- Returns:
- the first upstream node in the node list
-
getDownstreamNodes
returns all downstream nodes in the node list does not recurse through child elements -
getUpstreamNodes
returns all upstream nodes in the node list does not recurse through child elements -
getDownstreamElements
returns all elements downstream of this element- Parameters:
vec- a vector to hold the downstream elements (may be null)- Returns:
- the vector of downstream elements
-
getLinkedElementList
return a new Listobject with either upstream (INFLOW) or downstream (OUTFLOW) linked elements - Parameters:
direction- : Element.OUTFLOW or Element.INFLOW- Returns:
-
addNode
Deprecated. -
addNode
adds a node to this element -
removeNode
-
getReferencePt
public hec.map.WorldPt getReferencePt() -
getFunction
-
setFunction
-
findAdjParam
-
findAdjParam
-
findElement
-
getTSDataSet
Description copied from interface:TSLocationreturns the input or output TSData set currently associated with this loation- Specified by:
getTSDataSetin interfaceTSLocation
-
getNodeCount
public int getNodeCount() -
getNode
-
getNodeDir
public int getNodeDir(int idx) -
computeHindcastStep
computes a single hindcast time step -
computeForecastStep
computes a single forecast time step -
computeForecastStep
computes a single forecast time step with additional arguments containing an elevation trace over the time step -
computeSubStepFlow
computes a single forecast time step with additional arguments containing an elevation trace over the time step -
computeHindcast
performs a compute over the runtime window using hindcast logic -
computeForecast
performs a compute over the runtime window using forecast logic -
getForecastEquation
Deprecated. -
getHindcastEquation
Deprecated. -
readData
Deprecated.Retrieves the Element data from the specified BufferedReader. This method is called by RssSystem.readFile after encountering an Element line type. Control of the file processing is passed back to the RssSystem object once an Element End line type is found or if "Element" 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.
Element Name= (String) name of the Element
Element Nodes= (comma delimited ints) list of nodes connected by this element
Element NodeDir= (comma delimited ints) list of node directions
Element Function= (String) function type name
Element EndThere must one NodeDir value for each RssNode associated with the element. A NodeDir value of 1 indicates positive flow at the node is an inflow to this element, 0 indicates a positive flow is an outflow.
The function type name must be a valid Function Class name. The currently implemented classes include CoefRouting, Storage, Junction, Dam, and AdjustableFlow.
The Element Function line type generate new Function according to the specified class name. The readData method of the new object is called to process class specific data. Control is returned to this method when a Element Function End line type is found. Note that a Element Function= line type must be matched by a Element Function End line type or the file will not be processed correctly.- Parameters:
input- BufferedReader connected to the ASCII file containing the RssSystem data.- See Also:
-
writeData
Deprecated. -
getRequiredTSRecordProxies
returns the flow TSRecordProxies from upstream nodes on this element -
getFlowContolTSRecordProxies
-
getComputedTSRecordProxies_old
Deprecated.old method that assumes downstream records are computed -
getComputedTSRecordProxies
requests vector of computed ts proxies from function -
clearTSProxyList
public void clearTSProxyList()dumps all ts proxies -
updateTSProxyList
public void updateTSProxyList()loops through function and child elements telling them to update there sets of TSRecordProxies() -
updateWQTSProxyList
update set of TSRecordProxies associated with Water Quality- Parameters:
conList-
-
getActiveTSProxies
returns a vector of required input, or generated output TSRecordProxies used in the current alternative default implementation elements, assume all records are active -
getTSRecordProxies
Deprecated. -
getActiveStateVariables
returns a vector of state variables in physical parts of element -
getTSRecordProxy
gets TSRecordProxy from its function or child elements- Specified by:
getTSRecordProxyin interfaceRssTSLocation
-
getTSRecordProxy
Deprecated. -
setName
echo name change to nodes whose names are based on this elements name not needed any more?? with use of key strings?? -
calcSeepageFlow
public double calcSeepageFlow(double flow) -
getModelVariables
- Specified by:
getModelVariablesin interfacehec.watershed.res.model.PlottableObject
-
getDefaultModelVariables
Description copied from interface:hec.watershed.res.model.PlottableObjectreturn the list of Default ModelVariables to be used by the default plot- Specified by:
getDefaultModelVariablesin interfacehec.watershed.res.model.PlottableObject- Returns:
- the default ModelVariables
-
getPlotTypes
- Specified by:
getPlotTypesin interfacehec.watershed.res.model.PlottableObject
-
getPlotTypeFile
given the name of a system PlotType return a File for it -
getPlotTypeDirectory
-
getPlotTypeNames
-
getElementType
-
getElementTypeId
public int getElementTypeId()get the unique element type Id. 1 = ReservoirElement 2 = ReachElement 4 = JunctionElement) 8 = DiversionElement- Returns:
-
getTSRecords
-
getTSRecords
- Specified by:
getTSRecordsin interfacehec.watershed.res.model.PlottableObject
-
setObsDataVector
- Parameters:
obsDataList-
-
getObsDataVector
- Returns:
-
importObservedData
- Parameters:
fromElem-results-
-
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 classNamedType- 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 classNamedType- 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
-