Package hec.supplemental.model
Class ProgramOrderItem
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.supplemental.model.ProgramOrderItem
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,ModelConstants,Serializable,Cloneable,Comparable,Observer,Modifiable
public class ProgramOrderItem
extends NamedType
implements Serializable, AsciiSerializable, ModelConstants, Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProgramOrderItemstatic final ProgramOrderItemstatic final ProgramOrderItemstatic final ProgramOrderItemstatic final intstatic final ProgramOrderItemstatic final ProgramOrderItemstatic final ProgramOrderItemstatic final ProgramOrderItemstatic final ProgramOrderItemFields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENTFields inherited from interface hec.model.ModelConstants
FDA_MODEL_NAME, FIA_MODEL_NAME, HFP_MODEL_NAME, MFP_MODEL_NAME, RAS_MODEL_NAME, RESPRM_MODEL_NAME, RSS_MODEL_NAME, SUPPLEMENTAL_MODEL_NAME -
Constructor Summary
ConstructorsConstructorDescriptionProgramOrderItem(String name, boolean standardModel) ProgramOrderItem(String name, String description, boolean standardModel, int input) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclone()Creates a new object of the same class as this object.booleanequals(ProgramOrderItem that) booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intstatic Listget a List of the standard ProgramOrderItemsstatic voidinsertProgramOrderItem(ProgramOrderItem poi, int pos) booleanstatic booleanisStandardModel(String name) static voidbooleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetInputModelNumber(int num) voidvoidsetStandardModel(boolean b) toString()don't use toString() for comparisions.Methods 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
-
HEC5Q_MODEL
-
RMA2_MODEL
-
RMA11_MODEL
-
MFP_MODEL
-
HFP_MODEL
-
RSS_MODEL
-
RAS_MODEL
-
FIA_MODEL
-
RESPRM_MODEL
-
NO_INPUT_SELECTED
public static final int NO_INPUT_SELECTED- See Also:
-
-
Constructor Details
-
ProgramOrderItem
public ProgramOrderItem() -
ProgramOrderItem
-
ProgramOrderItem
-
ProgramOrderItem
-
-
Method Details
-
isStandardModel
-
toString
don't use toString() for comparisions. It might not return the internal name of the program. ie RSS returns RES. It's used for UI display purposes -
paramString
-
setStandardModel
public void setStandardModel(boolean b) -
isStandardModel
public boolean isStandardModel() -
setScript
-
getScript
-
equals
-
equals
-
getInputModelNumber
public int getInputModelNumber() -
setInputModelNumber
public void setInputModelNumber(int num) -
clone
Description copied from class:NamedTypeCreates a new object of the same class as this object.
It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No
constructor is called. -
addProgramOrderItem
-
insertProgramOrderItem
-
removeProgramOrderItem
-
getProgramOrderItems
get a List of the standard ProgramOrderItems -
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 classNamedType- 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 classNamedType- 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
-