public class OpControllableElement extends NamedType implements OpControllable, RssReturnStatusConstants
_description, _index, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTRTN_CANCELED, RTN_NOPROBLEM, RTN_OPCHANGE, RTN_PROBLEM| Constructor and Description |
|---|
OpControllableElement() |
OpControllableElement(OpController c,
Element e) |
OpControllableElement(OpController c,
int id) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
clone method - for complete cloning, reset the OpController on the returned clone.
|
int |
commitOperation(double val,
RunTimeStep rts,
int numsteps)
commit the operating decision for the given step to adjustable parameters
|
AdjustableParameter |
getAdjustableParameter()
returns the adjustable parameter associated with the Element function,
must be called after initializing the compute
|
double |
getCurrentParameterValue()
gets the total current adjustable parameter value
|
double |
getDecrROCLimit(RunTimeStep rts,
double[] relcap,
double[] dt,
double elev,
java.util.List rulelist)
Returns the approximate overall decreasing rate of change constraint
for this reservoir.
|
int |
getElementIndex()
returns the index of the Element refered to by this object
|
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double |
getFlowForPrevGateHeight(RunTimeStep rts,
double resElev)
returns the estimated flow if the gate openings from the previous time step
are maintained
|
double |
getIncrROCLimit(RunTimeStep rts,
double[] relcap,
double[] dt,
double elev,
java.util.List rulelist)
Returns the approximate overall increasing rate of change constraint
for this reservoir.
|
double |
getInstFlowCap(RunTimeStep rts,
double elev,
double[] cntrl,
double[] unctrl)
return the instantaneous flow capacity at the given time step and elevation
|
double |
getPreviousParameterValue(RunTimeStep rts)
gets the total current adjustable parameter value
|
int |
getReleaseElementId()
index of release element this contrable is associated with
|
boolean |
initializeCompute()
prepares for computation, gets a reference to the controlled element
|
int |
initOperationStep(RunTimeStep rts,
int iteration)
initialization call before each operation step
|
boolean |
isUncontrolled() |
void |
recalcPhysicalLimits(RunTimeStep rts,
double[] xt,
double[] et,
int tcnt) |
void |
recalcPhysicalLimitsInst(RunTimeStep rts,
double elev) |
void |
setController(OpController oc)
sets the parent controller
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
double |
setParameterValue(double val,
RunTimeStep rts)
sets the adjustable parameter value, returns the value actually applied
|
void |
setReleaseElement(Element e)
sets the associated release element and release element id
|
void |
setReleaseElementId(int elementId)
index of release element this contrable is associated with
|
addModifiableListener, compareTo, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTestpublic OpControllableElement()
public OpControllableElement(OpController c, int id)
public OpControllableElement(OpController c, Element e)
public void setReleaseElement(Element e)
setReleaseElement in interface OpControllablepublic int getReleaseElementId()
getReleaseElementId in interface OpControllablepublic double getIncrROCLimit(RunTimeStep rts, double[] relcap, double[] dt, double elev, java.util.List rulelist)
getIncrROCLimit in interface OpControllablepublic double getDecrROCLimit(RunTimeStep rts, double[] relcap, double[] dt, double elev, java.util.List rulelist)
getDecrROCLimit in interface OpControllablepublic boolean isUncontrolled()
public double getFlowForPrevGateHeight(RunTimeStep rts, double resElev)
getFlowForPrevGateHeight in interface OpControllablepublic double getInstFlowCap(RunTimeStep rts, double elev, double[] cntrl, double[] unctrl)
OpControllablegetInstFlowCap in interface OpControllablepublic java.lang.Object clone()
clone in interface OpControllableclone in class NamedTypepublic void setController(OpController oc)
setController in interface OpControllablepublic double setParameterValue(double val,
RunTimeStep rts)
setParameterValue in interface OpControllablepublic int commitOperation(double val,
RunTimeStep rts,
int numsteps)
public double getCurrentParameterValue()
getCurrentParameterValue in interface OpControllablepublic double getPreviousParameterValue(RunTimeStep rts)
getPreviousParameterValue in interface OpControllablepublic AdjustableParameter getAdjustableParameter()
getAdjustableParameter in interface OpControllablepublic boolean initializeCompute()
initializeCompute in interface OpControllablepublic int initOperationStep(RunTimeStep rts, int iteration)
initOperationStep in interface OpControllablepublic void recalcPhysicalLimitsInst(RunTimeStep rts, double elev)
recalcPhysicalLimitsInst in interface OpControllablepublic void recalcPhysicalLimits(RunTimeStep rts, double[] xt, double[] et, int tcnt)
recalcPhysicalLimits in interface OpControllablepublic void setReleaseElementId(int elementId)
setReleaseElementId in interface OpControllablepublic int getElementIndex()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class NamedTypefld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class NamedTypefld - The java field object representing the member field to be setfobj - The data to set in that field