#include "ScheduleRule.hpp"
Static Public Member Functions | |
static IddObjectType | iddObjectType () |
static std::vector< std::string > | validDateSpecificationTypeValues () |
Protected Member Functions | |
bool | setRuleIndex (int index) |
Related Functions | |
typedef boost::optional < ScheduleRule > | OptionalScheduleRule |
typedef std::vector< ScheduleRule > | ScheduleRuleVector |
ScheduleRule is a ParentObject that wraps the OpenStudio IDD object 'OS:Schedule:Rule'.
|
explicit |
Constructor associates this rule with the given ruleset.
This rule is made to be the highest priority rule. A new ScheduleDay is created which is owned by (a child of) this rule.
|
explicit |
Constructor associates this rule with the given ruleset.
This rule is made to be the highest priority rule. The given daySchedule is cloned and the new object is owned by (a child of) this rule.
|
inlinevirtual |
bool openstudio::model::ScheduleRule::addSpecificDate | ( | const openstudio::Date & | date | ) |
Adds a specific date, will delete start and end dates.
bool openstudio::model::ScheduleRule::applyFriday | ( | ) | const |
bool openstudio::model::ScheduleRule::applyMonday | ( | ) | const |
bool openstudio::model::ScheduleRule::applySaturday | ( | ) | const |
bool openstudio::model::ScheduleRule::applySunday | ( | ) | const |
bool openstudio::model::ScheduleRule::applyThursday | ( | ) | const |
bool openstudio::model::ScheduleRule::applyTuesday | ( | ) | const |
bool openstudio::model::ScheduleRule::applyWednesday | ( | ) | const |
bool openstudio::model::ScheduleRule::containsDate | ( | const openstudio::Date & | date | ) |
Returns true if this rule covers the given date.
std::vector<bool> openstudio::model::ScheduleRule::containsDates | ( | const std::vector< openstudio::Date > & | dates | ) |
Returns whether or not this rule covers each given date.
std::string openstudio::model::ScheduleRule::dateSpecificationType | ( | ) | const |
ScheduleDay openstudio::model::ScheduleRule::daySchedule | ( | ) | const |
boost::optional<openstudio::Date> openstudio::model::ScheduleRule::endDate | ( | ) | const |
Returns the end date of the date range if set.
A start date > end date indicates that the range wraps around the year.
void openstudio::model::ScheduleRule::ensureNoLeapDays | ( | ) |
|
static |
int openstudio::model::ScheduleRule::ruleIndex | ( | ) | const |
ScheduleRuleset openstudio::model::ScheduleRule::scheduleRuleset | ( | ) | const |
void openstudio::model::ScheduleRule::setApplyFriday | ( | bool | applyFriday | ) |
void openstudio::model::ScheduleRule::setApplyMonday | ( | bool | applyMonday | ) |
void openstudio::model::ScheduleRule::setApplySaturday | ( | bool | applySaturday | ) |
void openstudio::model::ScheduleRule::setApplySunday | ( | bool | applySunday | ) |
void openstudio::model::ScheduleRule::setApplyThursday | ( | bool | applyThursday | ) |
void openstudio::model::ScheduleRule::setApplyTuesday | ( | bool | applyTuesday | ) |
void openstudio::model::ScheduleRule::setApplyWednesday | ( | bool | applyWednesday | ) |
bool openstudio::model::ScheduleRule::setEndDate | ( | const openstudio::Date & | date | ) |
Sets the end date of the date range, will delete any specific dates specified.
A start date > end date indicates that the range wraps around the year.
|
protected |
bool openstudio::model::ScheduleRule::setStartDate | ( | const openstudio::Date & | date | ) |
Sets the start date of the date range, will delete any specific dates specified.
A start date > end date indicates that the range wraps around the year.
std::vector<openstudio::Date> openstudio::model::ScheduleRule::specificDates | ( | ) | const |
Returns the specific dates specified if any.
boost::optional<openstudio::Date> openstudio::model::ScheduleRule::startDate | ( | ) | const |
Returns the start date of the date range if set.
A start date > end date indicates that the range wraps around the year.
|
static |
|
related |
|
related |