public class HotstartOptions
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, hec.rss.model.reports.AltInputReportInfc
| Constructor and Description |
|---|
HotstartOptions() |
| Modifier and Type | Method and Description |
|---|---|
HotstartOptions |
clone()
clone the HotstartOptions Object
|
java.lang.String |
getDestDir() |
double |
getHoursToSave()
get the number of hours to save the timeseries data
|
HecTime |
getIntervalDateTime() |
java.lang.String |
getLoadAltName()
get the name of the alternative to use when creating the Hotstart filename
to load.
|
HecTime |
getSaveAtDateTime()
get the date and time to save a Hotstart file at
|
int |
getTimeIncrement()
get the time increment (i.e.
|
int |
getTimeStep()
get the time step to save the Hotstart file at.
|
boolean |
loadData(java.io.BufferedReader reader)
load the data into the HotstartOptions from reader
|
void |
outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
Alternative Input Report Interface for data.
|
void |
setCreateHotstart(boolean createHotstart)
set the flag indicating whether a Hotstart file(s) should be created
the particular time/interval also needs to be set.
|
void |
setDestDir(java.lang.String destDir) |
void |
setHoursToSave(double hoursToSave)
set the number of hours to save timeseries data back
|
void |
setIntervalDateTime(HecTime datetime) |
void |
setLoadAltName(java.lang.String loadAltName)
set the name of the alternative to use when creating the Hotstart filename
to load.
|
void |
setLoadHotstart(boolean loadHotstart)
set the flag indicating whether a Hotstart file should be loaded at the
start of the Simulation
|
void |
setSaveAtDateTime(boolean saveAtDateTime)
set the flag indicating that a Hotstart file should be created at a
particular date and time.
|
void |
setSaveAtDateTime(HecTime saveAtDate)
set the date and time to save a Hotstart file.
|
void |
setSaveAtEndofSim(boolean saveAtEndofSim)
set the flag indicating whether a Hotstart file should be created at the
end of the Simulation.
|
void |
setSaveAtInterval(boolean saveAtInterval)
set the flag indicating whether a Hotstart file should be saved at
an interval.
|
void |
setSaveAtLookback(boolean saveIt)
set the flag indicating whether a Hotstart file should be created
at the end of the lookback period.
|
void |
setTimeIncrement(int timeIncrement)
set the time increment (i.e.
|
void |
setTimeStep(int timeStep)
set the time step to save the Hotstart file at.
|
boolean |
shouldCreateHotstart()
get the flag indicating whether a Hotstart file(s) should be created
|
boolean |
shouldLoadHotstart()
get the flag indicating whether a Hotstart file should be loaded at the
start of the Simulation
|
boolean |
shouldSaveAtDateTime()
get the flag indicating that a Hotstart file should be created at a
particular date and time.
|
boolean |
shouldSaveAtEndofSim()
flag indicating that a Hotstart file should be created at the end of
the simulation.
|
boolean |
shouldSaveAtInterval()
get the flag indicating whether a Hotstart file should be saved at
an interval.
|
boolean |
shouldSaveAtLookback()
get the flag indicating whether a Hotstart file should be created
at the end of the lookback period.
|
boolean |
writeData(java.io.BufferedWriter writer)
write the data for the HotstartOptions to the writer.
|
public boolean shouldCreateHotstart()
public void setCreateHotstart(boolean createHotstart)
createHotstart - true to create a Hotstart filepublic boolean shouldSaveAtEndofSim()
shouldCreateHotstart() to return truepublic void setSaveAtEndofSim(boolean saveAtEndofSim)
shouldCreateHotstart to return truesaveAtEndofSim - true to save at the end of the simulationpublic boolean shouldSaveAtInterval()
shouldCreateHotstart to return truegetIntervalTime()public void setSaveAtInterval(boolean saveAtInterval)
shouldCreateHotstart to return truesaveAtInterval - true to save the file at an intervalpublic void setIntervalDateTime(HecTime datetime)
element - public HecTime getIntervalDateTime()
public int getTimeStep()
getTimeIncrement()setTimeIncrement(int)public void setTimeStep(int timeStep)
setTimeIncrement()timeStep - the time steppublic int getTimeIncrement()
setTimeStep(int).
setTimeStep(1);
setTimeIncrement(HecTime.HOUR_INCREMENT);
public void setTimeIncrement(int timeIncrement)
setTimeStep(int).
setTimeStep(1);
setTimeIncrement(HecTime.HOUR_INCREMENT);
timeIncrement - the time increment. One of:public java.lang.String getDestDir()
public void setDestDir(java.lang.String destDir)
public double getHoursToSave()
public void setHoursToSave(double hoursToSave)
hoursToSave - the number of hours to save timeseries datapublic boolean shouldLoadHotstart()
getLoadAltName()public void setLoadHotstart(boolean loadHotstart)
loadHotstart - true to load the Hotstart file at the start of the
simulationsetLoadAltName()public java.lang.String getLoadAltName()
public void setLoadAltName(java.lang.String loadAltName)
loadAltName - the name of the alternativepublic void setSaveAtDateTime(boolean saveAtDateTime)
shouldCreateHotstart() to return truesaveAtDateTime - true to save at a date and timesetSaveAtDateTime(HecTime)public boolean shouldSaveAtDateTime()
shouldCreateHotstart() to return truegetSaveAtDateTime()public void setSaveAtDateTime(HecTime saveAtDate)
saveAtDate - the date and time to save the file atsetSaveAtDateTime(boolean)public HecTime getSaveAtDateTime()
shouldSaveAtDateTime()public boolean shouldSaveAtLookback()
shouldCreateHotstart() to return truepublic void setSaveAtLookback(boolean saveIt)
shouldCreateHotstart() to return truesaveIt - true to save at the end of the lookback periodpublic boolean writeData(java.io.BufferedWriter writer)
throws java.io.IOException
writer - the writer to save the data tojava.io.IOException - if there is an IO errorpublic boolean loadData(java.io.BufferedReader reader)
throws java.io.IOException
reader - the BufferedReader to read the data fromjava.io.IOException - if an IO error occurredpublic HotstartOptions clone()
clone in class java.lang.ObjectObject.clone()public void outputReport(hec.rss.model.reports.AlternativeInputReport report,
org.jdom.Element elem)
hec.rss.model.reports.AltInputReportInfcoutputReport in interface hec.rss.model.reports.AltInputReportInfc