#include "ScheduleCompact.hpp"
Public Member Functions | |
ScheduleCompact (const Model &model) | |
ScheduleCompact (const Model &model, double constantValue) | |
ScheduleCompact (const Model &model, const Quantity &constantValue) | |
virtual | ~ScheduleCompact () |
void | setToConstantValue (double value) |
bool | setToConstantValue (const Quantity &value) |
bool | isConstantValue () const |
boost::optional< double > | constantValue () const |
boost::optional< Quantity > | getConstantValue (bool returnIP=false) const |
Static Public Member Functions | |
static IddObjectType | iddObjectType () |
Protected Types | |
typedef detail::ScheduleCompact_Impl | ImplType |
Protected Member Functions | |
ScheduleCompact (std::shared_ptr< detail::ScheduleCompact_Impl > impl) |
Related Functions | |
typedef boost::optional < ScheduleCompact > | OptionalScheduleCompact |
typedef std::vector < ScheduleCompact > | ScheduleCompactVector |
ScheduleCompact is a Schedule that wraps the OpenStudio IDD object 'OS:Schedule:Compact'.
|
protected |
|
explicit |
Creates an empty (no values set for any days) ScheduleCompact.
openstudio::model::ScheduleCompact::ScheduleCompact | ( | const Model & | model, |
double | constantValue | ||
) |
Creates a ScheduleCompact with constantValue applied to the entire year.
openstudio::model::ScheduleCompact::ScheduleCompact | ( | const Model & | model, |
const Quantity & | constantValue | ||
) |
Creates a ScheduleCompact with constantValue applied to the entire year, if scheduleTypeLimits() and the units are compatible.
Otherwise creates an empty ScheduleCompact.
|
inlinevirtual |
|
explicitprotected |
boost::optional<double> openstudio::model::ScheduleCompact::constantValue | ( | ) | const |
Returns this ScheduleCompact's constant value, if this ScheduleCompact conforms to that pattern.
Otherwise returns boost::none (evaluates to false).
boost::optional<Quantity> openstudio::model::ScheduleCompact::getConstantValue | ( | bool | returnIP = false | ) | const |
Returns this ScheduleCompact's constant value as a Quantity, if this ScheduleCompact conforms to that pattern and scheduleTypeLimits() is set.
Otherwise returns boost::none (evaluates to false).
|
static |
bool openstudio::model::ScheduleCompact::isConstantValue | ( | ) | const |
Returns true if this ScheduleCompact has a single value applied to the entire year.
(Roughly–the text fields are not checked.)
void openstudio::model::ScheduleCompact::setToConstantValue | ( | double | value | ) |
Clears all existing data and sets the data so that value will be applied to the entire year.
bool openstudio::model::ScheduleCompact::setToConstantValue | ( | const Quantity & | value | ) |
If value can be converted to scheduleTypeLimit()'s units, then all existing data is cleared and value is set (after unit conversion, if necessary).
|
related |
|
related |