48 #ifndef EnergyPlusAPIDataTransfer_h_INCLUDED 49 #define EnergyPlusAPIDataTransfer_h_INCLUDED 485 #endif // EnergyPlusAPIDataTransfer_h_INCLUDED This file provides a define that enables exposing methods on the API. No client needs to directly imp...
int apiDataFullyReady()
Provides a user-facing check for whether API data is ready to be accessed.
int isRaining()
Returns 0 if it is not currently raining, or 1 if it is currently raining.
double Real64
Definition: TypeDefs.h:52
Real64 getVariableValue(int handle)
Gets the current value of a variable.
#define ENERGYPLUSLIB_API
Definition: EnergyPlusAPI.h:61
int getMeterHandle(const char *meterName)
Gets a handle to a meter.
void resetActuator(int handle)
Resets an actuator so EnergyPlus will calculate the value as normal.
int getConstructionHandle(const char *constructionName)
Returns an index to a construction in the simulation.
Real64 getPluginTrendVariableSum(int handle, int count)
Gets the summation of a Python Plugin "Trend" variable over a given number of history points...
Real64 getPluginTrendVariableDirection(int handle, int count)
Gets the average trajectory of a Python Plugin "Trend" variable over a given number of history points...
void setPluginGlobalVariableValue(int handle, Real64 value)
Sets the value of a Python Plugin "Global" variable.
Real64 currentTime()
Returns the current time of the simulation.
Real64 getInternalVariableValue(int handle)
Gets the current value of an internal variable.
int dayOfWeek()
Returns the current day of week of the simulation, from 1 for Sunday to 7 on Saturday.
int currentEnvironmentNum()
Returns the current environment number for a specific siulation.
Real64 getActuatorValue(int handle)
Gets the value of an actuator in EnergyPlus.
Real64 getPluginTrendVariableAverage(int handle, int count)
Gets the average value of a Python Plugin "Trend" variable over a given number of history points...
int getActuatorHandle(const char *componentType, const char *controlType, const char *uniqueKey)
Gets a handle to an actuator.
void setActuatorValue(int handle, Real64 value)
Sets the value of an actuator in EnergyPlus.
int month()
Returns the current month of the simulation, from 1 for January to 12 for December.
int getPluginTrendVariableHandle(const char *name)
Gets a handle to a Python Plugin "Trend" variable.
void resetErrorFlag()
Reset the API Error flag.
Real64 getPluginTrendVariableMin(int handle, int count)
Gets the minimum value of a Python Plugin "Trend" variable over a given number of history points...
int minutes()
Returns the minutes into the hour from 1 to 60.
char * listAllAPIDataCSV()
Gets available API data for the current simulation.
int hour()
Returns the current hour of the day in 0-23 form.
int kindOfSim()
Returns an integer indicator for the current simulation environment type.
int warmupFlag()
Returns the current warmup flag status, 0 if not warming up, 1 if warming up.
int dayOfMonth()
Returns the current day of month of the simulation, from 1 to 28, 29, 30, or 31, based on the month...
int dayOfYear()
Returns the current day of year of the simulation, from 1 for January 1 to 365 (or 366 for a leap yea...
int daylightSavingsTimeIndicator()
Returns the current daylight savings time status, which is 0 (zero) if DST is off, or 1 (one) if DST is on.
int year()
Returns the current year of the simulation.
int getInternalVariableHandle(const char *type, const char *key)
Gets a handle to an internal variable.
Real64 systemTimeStep()
Returns the duration of the current HVAC system simulation time step, in fractional hours...
int getVariableHandle(const char *type, const char *key)
Gets a handle to a variable.
int actualTime()
Returns a simple sum of the time part of the date/time function.
int sunIsUp()
Returns 0 if the sun is down, or 1 if the sun is up.
int apiErrorFlag()
Provides a user-facing check on the API error flag.
Real64 getPluginTrendVariableMax(int handle, int count)
Gets the maximum value of a Python Plugin "Trend" variable over a given number of history points...
int actualDateTime()
Returns a simple sum of the date/time function.
Real64 zoneTimeStep()
Returns the duration of the current zone simulation time step, in fractional hours.
Real64 getPluginTrendVariableValue(int handle, int timeIndex)
Gets the current value of a Python Plugin "Trend" variable at a specific history point.
Real64 getMeterValue(int handle)
Gets the current value of a meter.
void requestVariable(const char *type, const char *key)
Marks a variable as requested in a simulation.
Real64 getPluginGlobalVariableValue(int handle)
Gets the current value of a Python Plugin "Global" variable.
int holidayIndex()
Returns the holiday index for the current day of the simulation.
int getPluginGlobalVariableHandle(const char *name)
Gets a handle to a Python Plugin "Global" variable.