Test::Int::Unary::OptFixPUnary Class Reference
[Unary scheduling constraints]
Test for unary constraint with optional tasks More...
Public Member Functions | |
OptFixPUnary (const Gecode::IntArgs &p0, int o, Gecode::IntPropLevel ipl0) | |
Create and register test. | |
virtual Assignment * | assignment (void) const |
Create and register initial assignment. | |
virtual bool | solution (const Assignment &x) const |
Test whether x is solution | |
virtual void | post (Gecode::Space &home, Gecode::IntVarArray &x) |
Post constraint on x. | |
Static Protected Member Functions | |
static int | st (const Gecode::IntArgs &p) |
Get a reasonable maximal start time. | |
Protected Attributes | |
Gecode::IntArgs | p |
The processing times. | |
int | l |
Threshold for taking a task as optional. |
Detailed Description
Test for unary constraint with optional tasks
Definition at line 90 of file unary.cpp.
Constructor & Destructor Documentation
Test::Int::Unary::OptFixPUnary::OptFixPUnary | ( | const Gecode::IntArgs & | p0, | |
int | o, | |||
Gecode::IntPropLevel | ipl0 | |||
) | [inline] |
Member Function Documentation
static int Test::Int::Unary::OptFixPUnary::st | ( | const Gecode::IntArgs & | p | ) | [inline, static, protected] |
virtual Assignment* Test::Int::Unary::OptFixPUnary::assignment | ( | void | ) | const [inline, virtual] |
Create and register initial assignment.
Reimplemented from Test::Int::Test.
virtual bool Test::Int::Unary::OptFixPUnary::solution | ( | const Assignment & | x | ) | const [inline, virtual] |
virtual void Test::Int::Unary::OptFixPUnary::post | ( | Gecode::Space & | home, | |
Gecode::IntVarArray & | x | |||
) | [inline, virtual] |
Member Data Documentation
Gecode::IntArgs Test::Int::Unary::OptFixPUnary::p [protected] |
int Test::Int::Unary::OptFixPUnary::l [protected] |
The documentation for this class was generated from the following file:
- test/int/unary.cpp