Skip to main content

System Coupling Participant library 2026 R1

Class sysc::RealAttribute

Last update: 09.03.2026

Definition: Attribute.hpp (line 24)

Provide a class for a real-valued attribute.

Members

Private attributes

Variable m_name

Definition: Attribute.hpp (line 111)

AttributeName sysc::RealAttribute::m_name

Type: AttributeName

Variable m_value

Definition: Attribute.hpp (line 112)

double sysc::RealAttribute::m_value {0.0}

Type: double

Variable m_lowerBound

Definition: Attribute.hpp (line 113)

double sysc::RealAttribute::m_lowerBound {0.0}

Type: double

Variable m_upperBound

Definition: Attribute.hpp (line 114)

double sysc::RealAttribute::m_upperBound {0.0}

Type: double

Variable m_hasLowerBound

Definition: Attribute.hpp (line 115)

bool sysc::RealAttribute::m_hasLowerBound {false}

Type: bool

Variable m_hasUpperBound

Definition: Attribute.hpp (line 116)

bool sysc::RealAttribute::m_hasUpperBound {false}

Type: bool

Variable m_dimensionality

Definition: Attribute.hpp (line 117)

Dimensionality sysc::RealAttribute::m_dimensionality

Type: Dimensionality

Variable m_modifiable

Definition: Attribute.hpp (line 118)

bool sysc::RealAttribute::m_modifiable {true}

Type: bool

Public functions

Function RealAttribute

sysc::RealAttribute::RealAttribute(AttributeName name, double value, Dimensionality dimensionality)

Provide a constructor for the RealAttribute class.

Parameters:

  • name: - attribute name.
  • value: - attribute value.
  • dimensionality: - attribute dimensionality.

Parameters:

Return type:

Function RealAttribute

sysc::RealAttribute::RealAttribute(AttributeName name, double value, Dimensionality dimensionality, bool modifiable)

Provide a constructor for the RealAttribute class.

Parameters:

  • name: - attribute name.
  • value: - attribute value.
  • dimensionality: - attribute dimensionality.
  • modifiable: - attribute is modifiable.

Parameters:

Return type:

Function RealAttribute

sysc::RealAttribute::RealAttribute(AttributeName name, double value, Dimensionality dimensionality, bool modifiable, bool hasLowerBound, double lowerBound, bool hasUpperBound, double upperBound)

Provide a constructor for the RealAttribute class.

Parameters:

  • name: - attribute name.
  • value: - attribute value.
  • dimensionality: - attribute dimensionality.
  • modifiable: - attribute is modifiable.
  • hasLowerBound: - attribute has a lower bound.
  • lowerBound: - lower bound of the attribute value.
  • hasUpperBound: - attribute has an upper bound.
  • upperBound: - upper bound of the attribute value.

Parameters:

  • AttributeName name
  • double value
  • Dimensionality dimensionality
  • bool modifiable
  • bool hasLowerBound
  • double lowerBound
  • bool hasUpperBound
  • double upperBound

Return type:

Function getName

const AttributeName & sysc::RealAttribute::getName() const noexcept

Return type: const AttributeName &

Function getValue

double sysc::RealAttribute::getValue() const noexcept

Return type: double

Function getDimensionality

const Dimensionality & sysc::RealAttribute::getDimensionality() const noexcept

Return type: const Dimensionality &

Function isModifiable

bool sysc::RealAttribute::isModifiable() const noexcept

Return type: bool

Function getUnits

std::string sysc::RealAttribute::getUnits() const

Return type: std::string

Function setLowerBound

void sysc::RealAttribute::setLowerBound(double lowerBound) noexcept

Parameters:

  • double lowerBound

Return type: void

Function setUpperBound

void sysc::RealAttribute::setUpperBound(double upperBound) noexcept

Parameters:

  • double upperBound

Return type: void

Function hasLowerBound

bool sysc::RealAttribute::hasLowerBound() const noexcept

Return type: bool

Function hasUpperBound

bool sysc::RealAttribute::hasUpperBound() const noexcept

Return type: bool

Function getLowerBound

double sysc::RealAttribute::getLowerBound() const

Return type: double

Function getUpperBound

double sysc::RealAttribute::getUpperBound() const

Return type: double

Connect with Ansys