Generated on Sat Aug 25 2012 15:53:14 for Gecode by doxygen 1.7.5
Gecode::Set::Int::ChannelBool Class Reference

Propagator for channelling between set variable and its characteristic function More...

#include <int.hh>

List of all members.

Classes

class  IndexAdvisor
 Advisor storing a single index More...

Public Member Functions

virtual Actorcopy (Space &home, bool)
 Copy propagator during cloning.
virtual PropCost cost (const Space &home, const ModEventDelta &med) const
 Cost function (defined as PC_QUADRATIC_LO)
virtual size_t dispose (Space &home)
 Delete propagator and return its size.
virtual ExecStatus propagate (Space &home, const ModEventDelta &med)
 Perform propagation.
virtual ExecStatus advise (Space &home, Advisor &a, const Delta &d)
 Give advice to propagator.

Static Public Member Functions

static ExecStatus post (Home home, ViewArray< Gecode::Int::BoolView > &x, View y)
 Post propagator for $x_i=j \Leftrightarrow i\in y_j$.

Protected Types

typedef MixNaryOnePropagator
< Gecode::Int::BoolView,
Gecode::Int::PC_BOOL_VAL, View,
PC_GEN_NONE
Super

Protected Member Functions

 ChannelBool (Space &home, bool share, ChannelBool &p)
 Constructor for cloning p.
 ChannelBool (Home home, ViewArray< Gecode::Int::BoolView > &, View)
 Constructor for posting.

Protected Attributes

Council< IndexAdvisorco
 Council for managing advisors.
SetDelta delta
 Accumulated delta information.
GLBndSet zeros
 Accumulated zero Booleans.
GLBndSet ones
 Accumulated one Booleans.
bool running
 Flag whether propagation is currently running.

Detailed Description

Propagator for channelling between set variable and its characteristic function

Implements channelling constraints between BoolVar and a SetVar. For BoolVars $x_0,\dots,x_n$ and SetVar $y$ it propagates the constraint $x_i=1 \Leftrightarrow i\in y$.

Requires

 #include <gecode/set/int.hh> 

Member Typedef Documentation


Constructor & Destructor Documentation

Gecode::Set::Int::ChannelBool::ChannelBool ( Space home,
bool  share,
ChannelBool p 
) [inline, protected]

Constructor for cloning p.

Definition at line 109 of file channel-bool.hpp.

Gecode::Set::Int::ChannelBool::ChannelBool ( Home  home,
ViewArray< Gecode::Int::BoolView > &  x0,
View  y0 
) [inline, protected]

Constructor for posting.

Definition at line 83 of file channel-bool.hpp.


Member Function Documentation

Actor * Gecode::Set::Int::ChannelBool::copy ( Space home,
bool  share 
) [virtual]

Copy propagator during cloning.

Definition at line 139 of file channel-bool.hpp.

PropCost Gecode::Set::Int::ChannelBool::cost ( const Space home,
const ModEventDelta med 
) const [virtual]

Cost function (defined as PC_QUADRATIC_LO)

Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.

Definition at line 125 of file channel-bool.hpp.

size_t Gecode::Set::Int::ChannelBool::dispose ( Space home) [inline, virtual]

Delete propagator and return its size.

Reimplemented from Gecode::MixNaryOnePropagator< Gecode::Int::BoolView, Gecode::Int::PC_BOOL_VAL, View, PC_GEN_NONE >.

Definition at line 131 of file channel-bool.hpp.

ExecStatus Gecode::Set::Int::ChannelBool::propagate ( Space home,
const ModEventDelta med 
) [virtual]

Perform propagation.

Definition at line 145 of file channel-bool.hpp.

ExecStatus Gecode::Set::Int::ChannelBool::advise ( Space home,
Advisor a,
const Delta d 
) [virtual]

Give advice to propagator.

Definition at line 195 of file channel-bool.hpp.

ExecStatus Gecode::Set::Int::ChannelBool::post ( Home  home,
ViewArray< Gecode::Int::BoolView > &  x,
View  y 
) [inline, static]

Post propagator for $x_i=j \Leftrightarrow i\in y_j$.

Definition at line 116 of file channel-bool.hpp.


Member Data Documentation

Council for managing advisors.

Definition at line 383 of file int.hh.

Accumulated delta information.

Definition at line 385 of file int.hh.

Accumulated zero Booleans.

Definition at line 387 of file int.hh.

Accumulated one Booleans.

Definition at line 389 of file int.hh.

Flag whether propagation is currently running.

Definition at line 391 of file int.hh.


The documentation for this class was generated from the following files: