Propagator for recording activity information. More...
#include <activity.hpp>
Classes | |
class | Idx |
Advisor with index and change information. More... | |
Public Member Functions | |
Recorder (Home home, ViewArray< View > &x, Activity &a) | |
Constructor for creation. More... | |
virtual Propagator * | copy (Space &home, bool share) |
Copy propagator during cloning. More... | |
virtual PropCost | cost (const Space &home, const ModEventDelta &med) const |
Cost function (record so that propagator runs last) More... | |
virtual void | reschedule (Space &home) |
Schedule function. More... | |
virtual ExecStatus | advise (Space &home, Advisor &a, const Delta &d) |
Give advice to propagator. More... | |
virtual ExecStatus | propagate (Space &home, const ModEventDelta &med) |
Perform propagation. More... | |
virtual size_t | dispose (Space &home) |
Delete propagator and return its size. More... | |
![]() | |
ModEventDelta | modeventdelta (void) const |
Return the modification event delta. More... | |
double | afc (const Space &home) const |
Return the accumlated failure count. More... | |
unsigned int | id (void) const |
Return propagator id. More... | |
PropagatorGroup | group (void) const |
Return group propagator belongs to. More... | |
void | group (PropagatorGroup g) |
Add propagator to group g. More... | |
bool | disabled (void) const |
Whether propagator is currently disabled. More... | |
void | kill (Space &home) |
Kill propagator. More... | |
void | disable (void) |
Disable propagator. More... | |
void | enable (void) |
Enable propagator. More... | |
![]() | |
virtual | ~Actor (void) |
To avoid warnings. More... | |
Static Public Member Functions | |
static ExecStatus | post (Home home, ViewArray< View > &x, Activity &a) |
Post activity recorder propagator. More... | |
![]() | |
static void * | operator new (size_t s) |
Not used. More... | |
static void | operator delete (void *p) |
Not used. More... | |
static void * | operator new (size_t s, Space &home) |
Allocate memory from space. More... | |
static void | operator delete (void *p, Space &home) |
No-op for exceptions. More... | |
Protected Member Functions | |
Recorder (Space &home, bool share, Recorder< View > &p) | |
Constructor for cloning p. More... | |
![]() | |
NaryPropagator (Space &home, bool share, NaryPropagator &p) | |
Constructor for cloning p. More... | |
NaryPropagator (Space &home, bool share, Propagator &p, ViewArray< View > &x) | |
Constructor for rewriting p during cloning. More... | |
NaryPropagator (Home home, ViewArray< View > &x) | |
Constructor for creation. More... | |
![]() | |
Propagator (Home home) | |
Constructor for posting. More... | |
Propagator (Space &home, bool share, Propagator &p) | |
Constructor for cloning p. More... | |
Propagator * | fwd (void) const |
Return forwarding pointer during copying. More... | |
GPI::Info & | gpi (void) |
Provide access to global propagator information. More... | |
Protected Attributes | |
Activity | a |
Access to activity information. More... | |
Council< Idx > | c |
The advisor council. More... | |
![]() | |
ViewArray< View > | x |
Array of views. More... | |
Propagator for recording activity information.
Definition at line 47 of file activity.hpp.
|
inlineprotected |
Constructor for cloning p.
Definition at line 372 of file activity.hpp.
|
inline |
Constructor for creation.
Definition at line 244 of file activity.hpp.
|
virtual |
Copy propagator during cloning.
Implements Gecode::Actor.
Definition at line 381 of file activity.hpp.
|
virtual |
Cost function (record so that propagator runs last)
Reimplemented from Gecode::NaryPropagator< View, PC_GEN_NONE >.
Definition at line 401 of file activity.hpp.
|
virtual |
Schedule function.
Reimplemented from Gecode::NaryPropagator< View, PC_GEN_NONE >.
Definition at line 407 of file activity.hpp.
|
virtual |
Give advice to propagator.
Reimplemented from Gecode::Propagator.
Definition at line 413 of file activity.hpp.
|
virtual |
|
inlinevirtual |
Delete propagator and return its size.
Reimplemented from Gecode::NaryPropagator< View, PC_GEN_NONE >.
Definition at line 387 of file activity.hpp.
|
inlinestatic |
Post activity recorder propagator.
Definition at line 255 of file activity.hpp.
|
protected |
Access to activity information.
Definition at line 167 of file activity.hpp.
|
protected |
The advisor council.
Definition at line 169 of file activity.hpp.