Package hec.rss.model
Class SystemFlowLimitOpRule
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.rss.model.SystemOpRule
hec.rss.model.SystemFlowLimitOpRule
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Comparable,Observer,rma.lang.Modifiable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a copy of a the SystemOpRule.getFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intintreturns the integer type of the limit: -1=Min, 1=MaxReturns a new Day of Week Multiplier objectintreturns the integer rssNodeIndex, -1 indicates local limit.Returns a reference to the seasonal record object containing the time varying flow limitsbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetInterpolationType(int type) voidsetLimitType(int type) sets the limit type, must ether -1=Min or 1=MaxvoidSets the Day of Week MulitpliervoidsetRssNodeIndex(int id) sets the rssNodeIndex, -1 indicates local limit.toString()Returns the name of the RuleMethods inherited from class hec.rss.model.SystemOpRule
getUnitSystem, setControllerMethods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
MIN
public static final int MIN- See Also:
-
MAX
public static final int MAX- See Also:
-
PARAMSTR_MAXRULE
- See Also:
-
PARAMSTR_MINRULE
- See Also:
-
PARAMSTR_MAXRULEID
- See Also:
-
PARAMSTR_MINRULEID
- See Also:
-
-
Constructor Details
-
SystemFlowLimitOpRule
public SystemFlowLimitOpRule() -
SystemFlowLimitOpRule
-
-
Method Details
-
getRssNodeIndex
public int getRssNodeIndex()returns the integer rssNodeIndex, -1 indicates local limit. -
setRssNodeIndex
public void setRssNodeIndex(int id) sets the rssNodeIndex, -1 indicates local limit. -
setInterpolationType
public void setInterpolationType(int type) -
getInterpolationType
public int getInterpolationType() -
getSeasonalRecord
Returns a reference to the seasonal record object containing the time varying flow limits -
clone
Description copied from class:SystemOpRuleCreates a copy of a the SystemOpRule. The pointer to the owner class, ReservoirSysOp is passed as a reference to the cloned object.- Overrides:
clonein classSystemOpRule- Throws:
CloneNotSupportedException
-
setLimitType
public void setLimitType(int type) sets the limit type, must ether -1=Min or 1=Max -
getLimitType
public int getLimitType()returns the integer type of the limit: -1=Min, 1=Max -
getMultiplier
Returns a new Day of Week Multiplier object -
setMultiplier
Sets the Day of Week Mulitplier -
toString
Returns the name of the Rule -
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 classSystemOpRule- 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 classSystemOpRule- 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
-