Universe::UniverseJavaProblem class

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

Base classes

class IUniverseProblem

Public static functions

static auto of(easyjni::JavaObject problem) -> Universe::IUniverseProblem*

Constructors, destructors, conversion operators

~UniverseJavaProblem() defaulted override

Public functions

auto operator*() -> easyjni::JavaObject
void addVariable(Universe::IUniverseVariable* variable) override
auto getVariables() -> const std::vector<Universe::IUniverseVariable*>& override
void addConstraint(Universe::IUniverseConstraint* constraint) override
auto getConstraints() -> const std::vector<Universe::IUniverseConstraint*>& override

Function documentation

static Universe::IUniverseProblem* Universe::UniverseJavaProblem::of(easyjni::JavaObject problem)

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

Creates a new UniverseJavaProblem from an existing Java object that is an instance of IUniverseProblem.

Universe::UniverseJavaProblem::~UniverseJavaProblem() override defaulted

Destroys this UniverseJavaProblem.

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

Returns The wrapped Java object.

Gives the Java object that is wrapped in this UniverseJavaProblem.

void Universe::UniverseJavaProblem::addVariable(Universe::IUniverseVariable* variable) override

Parameters
variable The variable to add.

Adds a variable to this problem.

const std::vector<Universe::IUniverseVariable*>& Universe::UniverseJavaProblem::getVariables() override

Returns The variables in this problem.

Gives the variables in this problem.

void Universe::UniverseJavaProblem::addConstraint(Universe::IUniverseConstraint* constraint) override

Parameters
constraint The constraint to add.

Adds a constraint to this problem.

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

Returns The constraints in this problem.

Gives the constraints in this problem.