public class IterationBlock
extends java.lang.Object
| Constructor and Description |
|---|
IterationBlock() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(Element elem)
adds an Element to the element vector
|
Element |
elementAt(int i)
returns the element at the given index
|
java.util.List |
getDownstreamOpRuleList()
Returns a new ArrayList with DownstreamOpRule objects referenced within
this iteration block
|
java.util.List |
getDownstreamOpVec(java.util.List decisionElemVec)
Returns a new vector with DownstreamOp objects referenced within
this iteration block
|
int |
getElementCount()
returns the number of elements in this iteration block
|
int |
getFirstIndex()
returns the first index in element order array
|
int |
getLastIndex()
returns the last index in element order array
|
int |
getNumRoutingSteps()
Returns the maximum number of time steps required to completely route flows
from a controlled release to the farthest downstream control location
|
java.util.List |
getPumpbackList()
Returns a new List with reservoirs that do pumpback operation that are in
this iteration block
|
java.util.List |
getSortedDecisionElements()
returns a vector of operable elements at the given
time step in order of shortest to longest lag to downstream rule.
|
java.util.List |
getStateVariableList()
returns a List of all StateVariables used by elements in this block
|
java.util.ArrayList |
getSystemPowerOpList()
Returns a new ArrayList with SystemHydropowerRule objects referenced within
this iteration block
|
boolean |
hasDownstreamRules()
returns true if any elements in the block utilize downstream operating rules
|
boolean |
hasTandemRules()
searches all rules from elements in this block and returns true if there is at least one TandemOpRule
|
void |
restoreElementState(int stateid)
Causes all elements in the iteration block to retore their state
for the given identifer that was previously saved
|
void |
saveElementState(int stateid)
Causes all elements in the iteration block to save their state so that
it can be restored later with computation loops are restarted
|
void |
setDependentElementsDirty(Element startElem,
boolean dirty)
sets "dirty" value of the given element and all elements whose flow depends
on the given element to the given state.
|
void |
setElementsDirty(boolean dirty)
sets "dirty" value of all elements in the iteration block to the given state
|
void |
setFirstIndex(int id)
sets the first index in element order array
|
void |
setLastIndex(int id)
sets the last index in element order array
|
public void setFirstIndex(int id)
public int getFirstIndex()
public void setLastIndex(int id)
public int getLastIndex()
public void addElement(Element elem)
public int getElementCount()
public Element elementAt(int i)
public boolean hasDownstreamRules()
public boolean hasTandemRules()
public int getNumRoutingSteps()
public java.util.List getDownstreamOpRuleList()
decisionElemVec - (not used at this time???)public java.util.List getDownstreamOpVec(java.util.List decisionElemVec)
decisionElemVec - (not used at this time???)public java.util.List getPumpbackList()
public java.util.ArrayList getSystemPowerOpList()
public java.util.List getStateVariableList()
public java.util.List getSortedDecisionElements()
public void setElementsDirty(boolean dirty)
dirty - indicates whether element needs to be recomputedpublic void setDependentElementsDirty(Element startElem, boolean dirty)
startElem - the starting element for the downstream traversaldirty - indicates whether element needs to be recomputedpublic void saveElementState(int stateid)
stateid - an identifier to label a particular statepublic void restoreElementState(int stateid)
stateid - an identifier to label a particular state