Public Member Functions |
| | FloatVarImp (Space &home, const FloatVal &d) |
| | Initialize with interval d.
|
Protected Member Functions |
| | FloatVarImp (Space &home, FloatVarImp &x) |
| | Constructor for cloning x.
|
Protected Attributes |
| FloatVal | dom |
| | Domain information.
|
Value access |
|
| FloatVal | domain (void) const |
| | Return domain.
|
| FloatNum | min (void) const |
| | Return minimum of domain.
|
| FloatNum | max (void) const |
| | Return maximum of domain.
|
| FloatVal | val (void) const |
| | Return value of domain (only if assigned).
|
| FloatNum | med (void) const |
| | Return median of domain (closest representation).
|
| FloatNum | size (void) const |
| | Return width of domain (distance between maximum and minimum).
|
Domain tests |
|
| bool | assigned (void) const |
| | Test whether variable is assigned.
|
| bool | zero_in (void) const |
| | Test whether 0 is contained in domain.
|
| bool | in (FloatNum n) const |
| | Test whether n is contained in domain.
|
| bool | in (const FloatVal &n) const |
| | Test whether n is contained in domain.
|
Domain update by value |
|
| ModEvent | eq (Space &home, FloatNum n) |
| | Restrict domain values to be equal to n.
|
| ModEvent | eq (Space &home, const FloatVal &n) |
| | Restrict domain values to be equal to n.
|
| ModEvent | lq (Space &home, FloatNum n) |
| | Restrict domain values to be less or equal than n.
|
| ModEvent | lq (Space &home, const FloatVal &n) |
| | Restrict domain values to be less or equal than n.
|
| ModEvent | gq (Space &home, FloatNum n) |
| | Restrict domain values to be greater or equal than n.
|
| ModEvent | gq (Space &home, const FloatVal &n) |
| | Restrict domain values to be greater or equal than n.
|
Dependencies |
|
| void | subscribe (Space &home, Propagator &p, PropCond pc, bool schedule=true) |
| | Subscribe propagator p with propagation condition pc to variable.
|
| void | reschedule (Space &home, Propagator &p, PropCond pc) |
| | Re-schedule propagator p with propagation condition pc.
|
| void | subscribe (Space &home, Advisor &a, bool fail) |
| | Subscribe advisor a to variable.
|
Cloning |
|
| FloatVarImp * | copy (Space &home) |
| | Return copy of this variable.
|
Variable implementation-dependent propagator support |
|
| static ModEventDelta | med (ModEvent me) |
| | Translate modification event me to modification event delta for view.
|
Delta information for advisors |
|
| static FloatNum | min (const Delta &d) |
| | Return minimum value just pruned.
|
| static FloatNum | max (const Delta &d) |
| | Return maximum value just pruned.
|