Package hec.rss.model
Class RuleConnectivityRef
java.lang.Object
hec.rss.model.RuleConnectivityRef
RuleConnectivityRef is used in copying reservoir network elements to identify
reservoir and diversion operating rule references to network components.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAcceptable references include any node in the networkstatic final intAcceptable references include all nodes downstream of element being copiedstatic final intAcceptable references include downstream nodes of any junction in the networkstatic final intAcceptable references include simialar model variablesstatic final intAcceptable references include any reservoir elementstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the Location Objectintget the Location Type IdgetRule()get the Rule ObjectvoidSet the Location ObjectvoidsetLocationType(int i) set the Location Type IdvoidSet the Rule
-
Field Details
-
DOWNSTREAM_NODE
public static final int DOWNSTREAM_NODEAcceptable references include all nodes downstream of element being copied- See Also:
-
ANY_NODE
public static final int ANY_NODEAcceptable references include any node in the network- See Also:
-
MODEL_VARIABLE
public static final int MODEL_VARIABLEAcceptable references include simialar model variables- See Also:
-
JUNCTION_NODE
public static final int JUNCTION_NODEAcceptable references include downstream nodes of any junction in the network- See Also:
-
RESERVOIR_ELEMENT
public static final int RESERVOIR_ELEMENTAcceptable references include any reservoir element- See Also:
-
STATE_VARIABLE
public static final int STATE_VARIABLE- See Also:
-
-
Constructor Details
-
RuleConnectivityRef
public RuleConnectivityRef()default constructor
-
-
Method Details
-
setRule
Set the Rule- Parameters:
r- should be either a Rule or OpRule object
-
getRule
get the Rule Object- Returns:
- either Rule or OpRule
-
setLocation
Set the Location Object- Parameters:
l- may be an RssNode, Independent Variable, or Reservoir Element
-
getLocation
get the Location Object- Returns:
- either an RssNode, Independent Variable, or Reservoir Element
-
setLocationType
public void setLocationType(int i) set the Location Type Id- Parameters:
i- the id
-
getLocationType
public int getLocationType()get the Location Type Id- Returns:
- the id
-