public class ReleaseAllocation extends java.lang.Object implements AsciiSerializable, java.lang.Cloneable, hec.rss.model.reports.AltInputReportInfc
Title: General CWMS Framework
Description:
Copyright: Copyright (c) 2002
Company: RMA Inc.
| Modifier and Type | Field and Description |
|---|---|
static int |
BALANCED_RELEASE |
static java.lang.String |
BALANCED_RELEASE_NAME |
static int |
FLOW_CAPACITY |
static int |
GATE_OPENING_HEIGHT |
static int |
PERCENT_GATE_OPENING |
static java.lang.String[] |
RELEASE_NAMES |
static java.lang.String |
RELEASE_UNIT_CAPACITY |
static java.lang.String |
RELEASE_UNIT_PERC_GATE_OPENING |
static java.lang.String[] |
RELEASE_UNITS |
static int |
SEQUENTIAL_RELEASE |
static java.lang.String |
SEQUENTIAL_RELEASE_NAME |
static int |
STEPPED_RELEASE |
static java.lang.String |
STEPPED_RELEASE_NAME |
| Constructor and Description |
|---|
ReleaseAllocation() |
ReleaseAllocation(int releaseAllocationType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReleaseElement(java.lang.Object obj) |
java.lang.Object |
clone() |
java.util.List |
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.
|
int |
getAllocationType()
type of allocation, one of SEQUENTIAL_RELEASE, STEPPED_RELEASE, or BALANCED_RELEASE
|
java.lang.String |
getAllocationTypeString() |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
java.lang.String |
getName() |
int |
getReleaseUnits() |
java.lang.String |
getReleaseUnitsString() |
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
java.lang.String |
paramString() |
void |
setAllocationType(int type)
type of allocation, one of SEQUENTIAL_RELEASE, STEPPED_RELEASE, or BALANCED_RELEASE
|
void |
setAllocationType(java.lang.String typeName) |
void |
setDescription(java.lang.String descrition) |
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setName(java.lang.String name) |
void |
setReleaseUnits(int units)
units type when allocation type == STEPPED_RELEASE
|
void |
setReleaseUnits(java.lang.String units) |
public static final int SEQUENTIAL_RELEASE
public static final int BALANCED_RELEASE
public static final int STEPPED_RELEASE
public static final java.lang.String SEQUENTIAL_RELEASE_NAME
public static final java.lang.String BALANCED_RELEASE_NAME
public static final java.lang.String STEPPED_RELEASE_NAME
public static final int FLOW_CAPACITY
public static final int PERCENT_GATE_OPENING
public static final int GATE_OPENING_HEIGHT
public static final java.lang.String[] RELEASE_NAMES
public static final java.lang.String RELEASE_UNIT_CAPACITY
public static final java.lang.String RELEASE_UNIT_PERC_GATE_OPENING
public static final java.lang.String[] RELEASE_UNITS
public ReleaseAllocation()
public ReleaseAllocation(int releaseAllocationType)
public java.lang.String getName()
public void setName(java.lang.String name)
public void setDescription(java.lang.String descrition)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic int getAllocationType()
public java.lang.String getAllocationTypeString()
public void setAllocationType(int type)
type - public void setAllocationType(java.lang.String typeName)
public void addReleaseElement(java.lang.Object obj)
public void setReleaseUnits(int units)
units - public void setReleaseUnits(java.lang.String units)
public java.util.List getAllocationList()
public int getReleaseUnits()
public java.lang.String getReleaseUnitsString()
public java.lang.String paramString()
public java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorfld - The java field object representing the member field to be setfobj - The data to set in that fieldpublic void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
hec.rss.model.reports.AltInputReportInfcoutputReport in interface hec.rss.model.reports.AltInputReportInfc