|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
74 if (status == Fixed || status == Set) {
75 Logger::ifout() <<
"FSVarStat::FSVarStat(): value to set/fix missing\n";
88 if (status != Fixed && status != Set) {
89 Logger::ifout() <<
"FSVarStat::FSVarStat(): wrong status for this constructor\n";
98 FSVarStat(
FSVarStat *fsVarStat) : glob_(fsVarStat->glob_), status_(fsVarStat->status_), value_(fsVarStat->value_) { }
145 double value()
const {
return value_; }
151 void value(
double val) { value_ = val; }
161 return (status_ != Free);
176 bool contradiction(
FSVarStat *fsVarStat)
const;
187 bool contradiction(STATUS status,
double value = 0)
const;
STATUS status_
The status of the variable.
@ SetToUpperBound
The variable is set to its upper bound.
void status(const FSVarStat *stat)
Assigns the status as in stat.
std::ostream & operator<<(std::ostream &out, const Active< BaseType, CoType > &rhs)
STATUS status() const
Returns the status of fixing or setting.
Status of fixed and set variables.
@ Free
The variable is neither fixed nor set.
#define OGDF_NEW_DELETE
Makes the class use OGDF's memory allocator.
FSVarStat(AbacusGlobal *glob, STATUS status, double value)
Initializes the status explicitely to Fixed or Set.
double value() const
Returns the value of fixing or setting if the variable has status Fixed or Set.
double value_
The value the variable is fixed/set to.
Exception thrown when an algorithm realizes an internal bug that prevents it from continuing.
@ Fixed
The variable is fixed to a value which can be accessed with the member function value().
@ SetToLowerBound
The variable is set to its lower bound.
void status(STATUS stat)
Assigns a new status.
STATUS
The enumeration defining the different statuses of variables from the point of view of fixing and set...
@ FixedToLowerBound
The variable is fixed to its lower bound.
FSVarStat(AbacusGlobal *glob)
Initializes the status to Free.
AbacusGlobal * glob_
A pointer to the corresponding global object.
Base class of all other classes of ABACUS.
void status(STATUS stat, double val)
Assigns a new status also for the statuses Fixed and Set.
FSVarStat(AbacusGlobal *glob, STATUS status)
Initializes the status to status.
#define OGDF_THROW_PARAM(CLASS, PARAM)
Replacement for throw.
FSVarStat(FSVarStat *fsVarStat)
Initializes the status as in fsVarStat.
bool fixedOrSet() const
Returns false if the status is Free, true otherwise.
static std::ostream & ifout()
stream for forced output (global; used by internal libraries, e.g. Abacus)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Global data and functions.
void value(double val)
Assigns a new value of fixing or setting.
@ Set
The variable is set to a value which can be accessed with the member function value().