Skip to content

Commit

Permalink
updated remora functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
rklasky committed Sep 23, 2020
1 parent ea72fe2 commit 3ec6ffb
Show file tree
Hide file tree
Showing 136 changed files with 9,803 additions and 2,872 deletions.
16 changes: 14 additions & 2 deletions MSSPM_GuiForecast/nmfForecastTab01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ nmfForecast_Tab1::getStartForecastYear()
return Forecast_Tab1_StartYearLE->text().toInt();
}

bool
nmfForecast_Tab1::isDeterministic()
{
return Forecast_Tab1_DeterministicCB->isChecked();
}

void
nmfForecast_Tab1::setDeterministic(bool isDeterministic)
{
Forecast_Tab1_DeterministicCB->setChecked(isDeterministic);
}

void
nmfForecast_Tab1::callback_SetNamePB()
{
Expand All @@ -111,7 +123,7 @@ nmfForecast_Tab1::callback_NextPB()
int
nmfForecast_Tab1::getSeed()
{
return (Forecast_Tab1_DeterministicCB->isChecked()) ? Forecast_Tab1_DeterministicSB->value() : -1;
return (isDeterministic()) ? Forecast_Tab1_DeterministicSB->value() : -1;
}

void
Expand Down Expand Up @@ -147,7 +159,7 @@ nmfForecast_Tab1::callback_SavePB()
std::string StartYear = Forecast_Tab1_StartYearLE->text().toStdString();
std::string EndYear = Forecast_Tab1_EndYearLE->text().toStdString();
std::string NumRuns = std::to_string(Forecast_Tab1_NumRunsSB->value());
std::string IsDeterministic = std::to_string(Forecast_Tab1_DeterministicCB->isChecked());
std::string IsDeterministic = std::to_string(isDeterministic());
std::string Seed = std::to_string(Forecast_Tab1_DeterministicSB->value());
std::string Algorithm;
std::string Minimizer;
Expand Down
10 changes: 10 additions & 0 deletions MSSPM_GuiForecast/nmfForecastTab01.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ class nmfForecast_Tab1: public QObject
* @return The integer start year associated with this Forecast
*/
int getStartForecastYear();
/**
* @brief Returns boolean signifying if the deterministic box has been checked
* @return Returns True/False describing if deterministic box has been checked
*/
bool isDeterministic();
/**
* @brief Loads all widgets for this GUI from database tables
* @return Returns true if all data were loaded successfully
Expand All @@ -117,6 +122,11 @@ class nmfForecast_Tab1: public QObject
* @brief Saves the GUIs settings to a Qt settings file
*/
void saveSettings();
/**
* @brief Sets the deterministic state of the appropriate checkbox
* @param isDeterministic : boolean describing deterministic state
*/
void setDeterministic(bool isDeterministic);

signals:
/**
Expand Down
Loading

0 comments on commit 3ec6ffb

Please sign in to comment.