Package hec.rss.model
Class HotstartContainer
java.lang.Object
hec.rss.model.HotstartContainer
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidbooleancanSave(RunTimeWindow rtw) voidclear()booleanfixElements(int computeType, List elements) protected intgetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.getFilename(boolean loadingFile) static StringgetFilename(RssSystem network, String altName, HecTime time, boolean loadingFile) getFilename(String altName, boolean loadingFile) get the name of the hotstart file without an extension.doubleprotected intprotected HecTimebooleanprotected voidprintErrorMessage(String msg) protected voidvoidput(String key, NetworkHotstartState state) protected booleanreadTimeSeries(String dssFilename, int computeType) voidsaveFile()voidsetCanSave(boolean saveable) booleansetFieldObject(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.voidsetHoursToSave(double hours) voidintsize()Return a copy of the current time series trimmed to the time window of startDate and endDatevalues()
-
Constructor Details
-
HotstartContainer
-
-
Method Details
-
setTime
-
put
-
getHotstartTime
-
get
-
getFilename
-
getNumStepsBack
protected int getNumStepsBack() -
printWarningMessage
-
printErrorMessage
-
getFilename
get the name of the hotstart file without an extension.- Parameters:
altName- name of the alternative, if null uses the Network's alternative's name- Returns:
- the name of the hotstart file without an extension.
- See Also:
-
getFilename
-
addTimeSeries
-
getHoursToSave
public double getHoursToSave() -
setHoursToSave
public void setHoursToSave(double hours) -
getTimeSeriesList
-
readTimeSeries
-
trimTimeSeries
Return a copy of the current time series trimmed to the time window of startDate and endDate- Parameters:
startDate-endDate-- Returns:
- Throws:
HecMathException
-
getCurrentRunTimeStep
protected int getCurrentRunTimeStep() -
getSaveStartTime
-
calcNumStepsBack
protected void calcNumStepsBack() -
saveFile
public void saveFile() -
loadFile
-
fixElements
-
clear
public void clear() -
values
-
size
public int size() -
setCanSave
public void setCanSave(boolean saveable) -
canSave
-
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
-