Package hec.rss.model
Class ReleaseAllocation
java.lang.Object
hec.rss.model.ReleaseAllocation
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,AltInputReportInfc,Serializable,Cloneable
public class ReleaseAllocation
extends Object
implements AsciiSerializable, Cloneable, AltInputReportInfc
Title: General CWMS Framework
Description:
Copyright: Copyright (c) 2002
Company: RMA Inc.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReleaseElement(Object obj) clone()for sequential type holds the ordered list of controllers indexes in intContainers for balanced type holds the IntToDoubleContainer for controller ids and weights for sequential type holds the IntToDoubleArrayContainer for the controller id and capacities.inttype of allocation, one of SEQUENTIAL_RELEASE, STEPPED_RELEASE, or BALANCED_RELEASEgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getName()intvoidoutputReport(AlternativeInputReport report, org.jdom.Element elem) Alternative Input Report Interface for data.voidsetAllocationType(int type) type of allocation, one of SEQUENTIAL_RELEASE, STEPPED_RELEASE, or BALANCED_RELEASEvoidsetAllocationType(String typeName) voidsetDescription(String descrition) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidvoidsetReleaseUnits(int units) units type when allocation type == STEPPED_RELEASEvoidsetReleaseUnits(String units)
-
Field Details
-
SEQUENTIAL_RELEASE
public static final int SEQUENTIAL_RELEASE- See Also:
-
BALANCED_RELEASE
public static final int BALANCED_RELEASE- See Also:
-
STEPPED_RELEASE
public static final int STEPPED_RELEASE- See Also:
-
SEQUENTIAL_RELEASE_NAME
- See Also:
-
BALANCED_RELEASE_NAME
- See Also:
-
STEPPED_RELEASE_NAME
- See Also:
-
FLOW_CAPACITY
public static final int FLOW_CAPACITY- See Also:
-
PERCENT_GATE_OPENING
public static final int PERCENT_GATE_OPENING- See Also:
-
GATE_OPENING_HEIGHT
public static final int GATE_OPENING_HEIGHT- See Also:
-
RELEASE_NAMES
-
RELEASE_UNIT_CAPACITY
- See Also:
-
RELEASE_UNIT_PERC_GATE_OPENING
- See Also:
-
RELEASE_UNITS
-
-
Constructor Details
-
ReleaseAllocation
public ReleaseAllocation() -
ReleaseAllocation
public ReleaseAllocation(int releaseAllocationType)
-
-
Method Details
-
getName
-
setName
-
setDescription
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getAllocationType
public int getAllocationType()type of allocation, one of SEQUENTIAL_RELEASE, STEPPED_RELEASE, or BALANCED_RELEASE -
getAllocationTypeString
-
setAllocationType
public void setAllocationType(int type) type of allocation, one of SEQUENTIAL_RELEASE, STEPPED_RELEASE, or BALANCED_RELEASE- Parameters:
type-
-
setAllocationType
-
addReleaseElement
-
setReleaseUnits
public void setReleaseUnits(int units) units type when allocation type == STEPPED_RELEASE- Parameters:
units-
-
setReleaseUnits
-
getAllocationList
for sequential type holds the ordered list of controllers indexes in intContainers for balanced type holds the IntToDoubleContainer for controller ids and weights for sequential type holds the IntToDoubleArrayContainer for the controller id and capacities. -
getReleaseUnits
public int getReleaseUnits() -
getReleaseUnitsString
-
paramString
-
getFieldObject
Description copied from interface:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- 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- 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
-
outputReport
Description copied from interface:AltInputReportInfcAlternative Input Report Interface for data.- Specified by:
outputReportin interfaceAltInputReportInfc
-