Package hec.rss.model
Class ResOpHotstartState
java.lang.Object
hec.rss.model.HotstartState
hec.rss.model.ResOpHotstartState
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
- See Also:
-
Field Summary
Fields inherited from class hec.rss.model.HotstartState
_childStates, RESTORE_STATE_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.booleanvoidsaveState(int stateId) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.Methods inherited from class hec.rss.model.HotstartState
addChildState, addTimeSeries, calcNumStepsBack, getChildState, getCurrentRunTimeStep, getFilename, getHotstartTime, getHoursToSave, getName, getNumStepsBack, getObjectClass, getSaveStartTime, getTimeSeriesList, printErrorMessage, printWarningMessage, setName, setObjectClass, setParentState, toString
-
Constructor Details
-
ResOpHotstartState
public ResOpHotstartState() -
ResOpHotstartState
-
-
Method Details
-
getReservoirOp
-
restoreState
public boolean restoreState()- Specified by:
restoreStatein classHotstartState
-
saveState
public void saveState(int stateId) - Specified by:
saveStatein classHotstartState
-
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 classHotstartState- 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 classHotstartState- 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
-