Universe::UniverseJavaVariable class

The UniverseJavaVariable class defines an adapter for an IUniverseVariable written in Java (and implementing the interface provided by JUniverse).

Base classes

class IUniverseVariable

Public static functions

static auto of(easyjni::JavaObject variable) -> Universe::IUniverseVariable*

Constructors, destructors, conversion operators

~UniverseJavaVariable() defaulted override

Public functions

auto operator*() -> easyjni::JavaObject
auto getName() const -> const std::string& override
auto getId() const -> int override
auto getDomain() const -> Universe::IUniverseDomain* override
auto getConstraints() -> const std::vector<Universe::IUniverseConstraint*>& override

Function documentation

static Universe::IUniverseVariable* Universe::UniverseJavaVariable::of(easyjni::JavaObject variable)

Parameters
variable The existing Java object.
Returns The wrapper for the object.

Creates a new UniverseJavaVariable from an existing Java object that is an instance of IUniverseVariable.

Universe::UniverseJavaVariable::~UniverseJavaVariable() override defaulted

Destroys this UniverseJavaVariable.

easyjni::JavaObject Universe::UniverseJavaVariable::operator*()

Returns The wrapped Java object.

Gives the Java object that is wrapped in this UniverseJavaVariable.

const std::string& Universe::UniverseJavaVariable::getName() const override

Returns The name of this variable.

Gives the name of this variable.

int Universe::UniverseJavaVariable::getId() const override

Returns The internal identifier of this variable.

Gives the internal identifier of this variable.

Universe::IUniverseDomain* Universe::UniverseJavaVariable::getDomain() const override

Returns The domain of this variable.

Gives the domain of this variable.

const std::vector<Universe::IUniverseConstraint*>& Universe::UniverseJavaVariable::getConstraints() override

Returns The constraints of this variable.

Gives the constraints containing this variable.