OpenStudio:airflow
Loading...
Searching...
No Matches
openstudio::contam::XyDataPoint Class Reference

#include <PrjSubobjects.hpp>

Public Member Functions

Constructors
 XyDataPoint ()
 Create a new object with default values.
 
 XyDataPoint (double x, double y)
 Create a new object.
 
 XyDataPoint (std::string x, std::string y)
 Create a new object.
 
Input and Output
void read (Reader &reader)
 Read an object from a Reader.
 
std::string write ()
 Write the object to a string.
 

Getters and Setters

double x () const
 Returns the value of independent variable.
 
bool setX (const double x)
 Sets the value of independent variable.
 
bool setX (const std::string &x)
 Sets the value of independent variable.
 
double y () const
 Returns the value of dependent variable.
 
bool setY (const double y)
 Sets the value of dependent variable.
 
bool setY (const std::string &y)
 Sets the value of dependent variable.
 

Detailed Description

The XyDataPoint object is used by a number of the airflow element objects to store data specific to the element.

Constructor & Destructor Documentation

◆ XyDataPoint() [1/3]

openstudio::contam::XyDataPoint::XyDataPoint ( )

Create a new object with default values.

◆ XyDataPoint() [2/3]

openstudio::contam::XyDataPoint::XyDataPoint ( double x,
double y )

Create a new object.

◆ XyDataPoint() [3/3]

openstudio::contam::XyDataPoint::XyDataPoint ( std::string x,
std::string y )

Create a new object.

Member Function Documentation

◆ read()

void openstudio::contam::XyDataPoint::read ( Reader & reader)

Read an object from a Reader.

◆ setX() [1/2]

bool openstudio::contam::XyDataPoint::setX ( const double x)

Sets the value of independent variable.

◆ setX() [2/2]

bool openstudio::contam::XyDataPoint::setX ( const std::string & x)

Sets the value of independent variable.

◆ setY() [1/2]

bool openstudio::contam::XyDataPoint::setY ( const double y)

Sets the value of dependent variable.

◆ setY() [2/2]

bool openstudio::contam::XyDataPoint::setY ( const std::string & y)

Sets the value of dependent variable.

◆ write()

std::string openstudio::contam::XyDataPoint::write ( )

Write the object to a string.

◆ x()

double openstudio::contam::XyDataPoint::x ( ) const

Returns the value of independent variable.

◆ y()

double openstudio::contam::XyDataPoint::y ( ) const

Returns the value of dependent variable.