-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add new field for SimulationControl: DoHVACSizingSimulationforSizingPeriods
and MaximumNumberofHVACSizingSimulationPasses
#193
Conversation
* [#185](https://github.com/NREL/OpenStudioApplication/pull/185) - Support WaterCooled VRFs in OSApp | ||
|
||
* [#193](https://github.com/NREL/OpenStudioApplication/pull/193) - Add new fields for SimulationControl: `DoHVACSizingSimulationforSizingPeriods` and `MaximumNumberofHVACSizingSimulationPasses` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a draft release note, and write the two new features in the works currently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool
m_doHVACSizingSimulationforSizingPeriods(nullptr), | ||
m_maximumNumberofHVACSizingSimulationPasses(nullptr), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ctor initialize new fields in the right place to match hpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should turn on static analysis to check this, http://cppcheck.sourceforge.net/
row = row + 2; | ||
spacerItem = new QSpacerItem(1,SPACERITEM_HEIGHT,QSizePolicy::Fixed,QSizePolicy::Fixed); | ||
gridLayout->addItem(spacerItem,row++,0); | ||
col = 0; | ||
|
||
addField(gridLayout,row,col,"Do HVAC Sizing Simulation for Sizing Periods",m_doHVACSizingSimulationforSizingPeriods); | ||
col = col + 2; | ||
addField(gridLayout,row,col,"Maximum Number of HVAC Sizing Simulation Passes",m_maximumNumberofHVACSizingSimulationPasses); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an switch and an integer edit for the two new fields
m_doHVACSizingSimulationforSizingPeriods->bind( | ||
*m_simulationControl, | ||
std::bind(&model::SimulationControl::doHVACSizingSimulationforSizingPeriods,m_simulationControl.get_ptr()), | ||
boost::optional<BoolSetter>(std::bind(&model::SimulationControl::setDoHVACSizingSimulationforSizingPeriodsNoFail,m_simulationControl.get_ptr(),std::placeholders::_1)), | ||
boost::optional<NoFailAction>(std::bind(&model::SimulationControl::resetDoHVACSizingSimulationforSizingPeriods,m_simulationControl.get_ptr())), | ||
boost::optional<BasicQuery>(std::bind(&model::SimulationControl::isDoHVACSizingSimulationforSizingPeriodsDefaulted,m_simulationControl.get_ptr()))); | ||
|
||
m_maximumNumberofHVACSizingSimulationPasses->bind( | ||
*m_simulationControl, | ||
IntGetter(std::bind(&model::SimulationControl::maximumNumberofHVACSizingSimulationPasses,m_simulationControl.get_ptr())), | ||
boost::optional<IntSetter>(std::bind(&model::SimulationControl::setMaximumNumberofHVACSizingSimulationPasses,m_simulationControl.get_ptr(),std::placeholders::_1)), | ||
boost::optional<NoFailAction>(std::bind(&model::SimulationControl::resetMaximumNumberofHVACSizingSimulationPasses,m_simulationControl.get_ptr())), | ||
boost::none, | ||
boost::none, | ||
boost::optional<BasicQuery>(std::bind(&model::SimulationControl::isMaximumNumberofHVACSizingSimulationPassesDefaulted,m_simulationControl.get_ptr()))); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bind the two new fields.
m_doHVACSizingSimulationforSizingPeriods->unbind(); | ||
m_maximumNumberofHVACSizingSimulationPasses->unbind(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unbind them on detach
OSSwitch2 * m_doHVACSizingSimulationforSizingPeriods; | ||
OSIntegerEdit2 * m_maximumNumberofHVACSizingSimulationPasses; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One switch for the YES/NO one, and one integer edit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Want me to merge? |
Fix #192 - Add new field for SimulationControl:
DoHVACSizingSimulationforSizingPeriods
andMaximumNumberofHVACSizingSimulationPasses