OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
openstudio::RunOptions Class Reference

#include <RunOptions.hpp>

Public Member Functions

bool cleanup () const
 Remove unnecessary files during post processing, defaults to true. More...
 
boost::optional
< CustomOutputAdapter
customOutputAdapter () const
 
bool debug () const
 Print debugging messages, defaults to false. More...
 
bool epjson () const
 Create, export and run using epjson format. More...
 
bool fast () const
 Speeds up workflow by skipping steps not needed for running simulations, defaults to false. More...
 
OS_DEPRECATED std::string forwardTranslateOptions () const
 
ForwardTranslatorOptions forwardTranslatorOptions () const
 
bool isCleanupDefaulted () const
 
bool isDebugDefaulted () const
 
bool isEpjsonDefaulted () const
 
bool isFastDefaulted () const
 
bool isPreserveRunDirDefaulted () const
 
bool isSkipEnergyPlusPreprocessDefaulted () const
 
bool isSkipExpandObjectsDefaulted () const
 
bool isSkipZipResultsDefaulted () const
 
void overrideValuesWith (const RunOptions &other)
 
bool preserveRunDir () const
 
void resetCleanup ()
 
void resetCustomOutputAdapter ()
 
void resetDebug ()
 
void resetEpjson ()
 
void resetFast ()
 
OS_DEPRECATED void resetForwardTranslateOptions ()
 
void resetForwardTranslatorOptions ()
 
void resetPreserveRunDir ()
 
void resetSkipEnergyPlusPreprocess ()
 
void resetSkipExpandObjects ()
 
void resetSkipZipResults ()
 
 RunOptions ()
 
bool setCleanup (bool cleanup)
 
bool setCustomOutputAdapter (const CustomOutputAdapter &adapter)
 
bool setDebug (bool debug)
 
bool setEpjson (bool epjson)
 
bool setFast (bool fast)
 
OS_DEPRECATED bool setForwardTranslateOptions (const std::string &options)
 
bool setForwardTranslatorOptions (const ForwardTranslatorOptions &forwardTranslatorOptions)
 
bool setPreserveRunDir (bool preserveRunDir)
 
bool setSkipEnergyPlusPreprocess (bool skipEnergyPlusPreprocess)
 
bool setSkipExpandObjects (bool skipExpandObjects)
 
bool setSkipZipResults (bool skipZipResults)
 
bool skipEnergyPlusPreprocess () const
 Does not add add default output requests to EnergyPlus input if true. More...
 
bool skipExpandObjects () const
 Skips the call to the EnergyPlus ExpandObjects program, defaults to false. More...
 
bool skipZipResults () const
 Skips creating the data_point.zip file. More...
 
std::string string () const
 Serialize to JSON formatted string. More...
 
Json::Value toJSON () const
 
virtual ~RunOptions ()
 

Static Public Member Functions

static boost::optional
< RunOptions
fromString (const std::string &s)
 Construct from JSON formatted string. More...
 

Detailed Description

Base class for defining a run options for a OpenStudio Workflow.

Constructor & Destructor Documentation

openstudio::RunOptions::RunOptions ( )
virtual openstudio::RunOptions::~RunOptions ( )
virtual

Member Function Documentation

bool openstudio::RunOptions::cleanup ( ) const

Remove unnecessary files during post processing, defaults to true.

boost::optional<CustomOutputAdapter> openstudio::RunOptions::customOutputAdapter ( ) const
bool openstudio::RunOptions::debug ( ) const

Print debugging messages, defaults to false.

bool openstudio::RunOptions::epjson ( ) const

Create, export and run using epjson format.

Default is false

bool openstudio::RunOptions::fast ( ) const

Speeds up workflow by skipping steps not needed for running simulations, defaults to false.

OS_DEPRECATED std::string openstudio::RunOptions::forwardTranslateOptions ( ) const
ForwardTranslatorOptions openstudio::RunOptions::forwardTranslatorOptions ( ) const
static boost::optional<RunOptions> openstudio::RunOptions::fromString ( const std::string &  s)
static

Construct from JSON formatted string.

bool openstudio::RunOptions::isCleanupDefaulted ( ) const
bool openstudio::RunOptions::isDebugDefaulted ( ) const
bool openstudio::RunOptions::isEpjsonDefaulted ( ) const
bool openstudio::RunOptions::isFastDefaulted ( ) const
bool openstudio::RunOptions::isPreserveRunDirDefaulted ( ) const
bool openstudio::RunOptions::isSkipEnergyPlusPreprocessDefaulted ( ) const
bool openstudio::RunOptions::isSkipExpandObjectsDefaulted ( ) const
bool openstudio::RunOptions::isSkipZipResultsDefaulted ( ) const
void openstudio::RunOptions::overrideValuesWith ( const RunOptions other)
bool openstudio::RunOptions::preserveRunDir ( ) const
void openstudio::RunOptions::resetCleanup ( )
void openstudio::RunOptions::resetCustomOutputAdapter ( )
void openstudio::RunOptions::resetDebug ( )
void openstudio::RunOptions::resetEpjson ( )
void openstudio::RunOptions::resetFast ( )
OS_DEPRECATED void openstudio::RunOptions::resetForwardTranslateOptions ( )
void openstudio::RunOptions::resetForwardTranslatorOptions ( )
void openstudio::RunOptions::resetPreserveRunDir ( )
void openstudio::RunOptions::resetSkipEnergyPlusPreprocess ( )
void openstudio::RunOptions::resetSkipExpandObjects ( )
void openstudio::RunOptions::resetSkipZipResults ( )
bool openstudio::RunOptions::setCleanup ( bool  cleanup)
bool openstudio::RunOptions::setCustomOutputAdapter ( const CustomOutputAdapter adapter)
bool openstudio::RunOptions::setDebug ( bool  debug)
bool openstudio::RunOptions::setEpjson ( bool  epjson)
bool openstudio::RunOptions::setFast ( bool  fast)
OS_DEPRECATED bool openstudio::RunOptions::setForwardTranslateOptions ( const std::string &  options)
bool openstudio::RunOptions::setForwardTranslatorOptions ( const ForwardTranslatorOptions forwardTranslatorOptions)
bool openstudio::RunOptions::setPreserveRunDir ( bool  preserveRunDir)
bool openstudio::RunOptions::setSkipEnergyPlusPreprocess ( bool  skipEnergyPlusPreprocess)
bool openstudio::RunOptions::setSkipExpandObjects ( bool  skipExpandObjects)
bool openstudio::RunOptions::setSkipZipResults ( bool  skipZipResults)
bool openstudio::RunOptions::skipEnergyPlusPreprocess ( ) const

Does not add add default output requests to EnergyPlus input if true.

Requests from reporting measures are added in either case, defaults to false

bool openstudio::RunOptions::skipExpandObjects ( ) const

Skips the call to the EnergyPlus ExpandObjects program, defaults to false.

bool openstudio::RunOptions::skipZipResults ( ) const

Skips creating the data_point.zip file.

Setting to true can cause issues with workflows expecting .zip files to signal completion (e.g., OpenStudio Analysis Framework), defaults to false

std::string openstudio::RunOptions::string ( ) const

Serialize to JSON formatted string.

Json::Value openstudio::RunOptions::toJSON ( ) const