Generated on Fri Mar 20 12:35:19 2009 for cpsp-2.3.1 by doxygen 1.5.5

cpsp::gecode::GC_ThreadingSpaceShapes Class Reference

#include <GC_ThreadingSpace.hh>

Inheritance diagram for cpsp::gecode::GC_ThreadingSpaceShapes:

Detailed Description

CSP model that extends the CPSP approach so that only structure shapes are enumerated. These shapes differ in the way they cross an H-core. For eache shape one representing structure is calculated

Definition at line 328 of file GC_ThreadingSpace.hh.


Public Types

typedef std::vector< unsigned int > HullLevel
enum  NeighPropLvl { CUSTOM_2, NO_PROP }
typedef std::map< SeqFeatures,
std::vector< unsigned int > > 
SeqFeatureMap
enum  SeqFeatures { P_SINGLET, H_SINGLET }

Public Member Functions

virtual SuperSpacecopy (bool share)
 GC_ThreadingSpaceShapes (bool share, GC_ThreadingSpaceShapes &toCopy)
 GC_ThreadingSpaceShapes (const std::string *sequence, const biu::LatticeFrame *latFrame, const biu::IndexVec *neighVecs, SeqFeatureMap *seqFeatureMap, const HullLevel *hullLvl, HCore *hCore, const GC_ThreadingSymmBreaker::GlobalShiftVec *shiftVec, int branchingType=BR_DFS|BR_SYM)
virtual int getIndex (const Gecode::VarBase *vb) const
virtual int getIndex (const Gecode::Int::IntView &v) const
int getRank (int index) const
virtual biu::IndexVec getSolution () const
virtual void handleSolution (GC_ThreadingSpace *solution)
virtual void print () const
virtual ~GC_ThreadingSpaceShapes ()

Protected Attributes

Gecode::IntVarArray domains
std::vector< int > rank

Member Typedef Documentation

typedef std::vector<unsigned int> cpsp::gecode::GC_ThreadingSpace::HullLevel [inherited]

Definition at line 75 of file GC_ThreadingSpace.hh.

typedef std::map< SeqFeatures, std::vector <unsigned int> > cpsp::gecode::GC_ThreadingSpace::SeqFeatureMap [inherited]

Definition at line 73 of file GC_ThreadingSpace.hh.


Member Enumeration Documentation

neighborhood propagation level

Enumerator:
CUSTOM_2  CUSTOM_2 : using an advanced binary propagator.
NO_PROP  NO_PROP : post no neighboring propagator.

Definition at line 78 of file GC_ThreadingSpace.hh.

sequence features

Enumerator:
P_SINGLET 
H_SINGLET 

Definition at line 71 of file GC_ThreadingSpace.hh.


Constructor & Destructor Documentation

cpsp::gecode::GC_ThreadingSpaceShapes::GC_ThreadingSpaceShapes ( const std::string *  sequence,
const biu::LatticeFrame *  latFrame,
const biu::IndexVec *  neighVecs,
SeqFeatureMap seqFeatureMap,
const HullLevel hullLvl,
HCore hCore,
const GC_ThreadingSymmBreaker::GlobalShiftVec shiftVec,
int  branchingType = BR_DFS|BR_SYM 
)

Definition at line 299 of file GC_ThreadingSpace.cc.

cpsp::gecode::GC_ThreadingSpaceShapes::GC_ThreadingSpaceShapes ( bool  share,
GC_ThreadingSpaceShapes toCopy 
) [inline]

Definition at line 345 of file GC_ThreadingSpace.hh.

virtual cpsp::gecode::GC_ThreadingSpaceShapes::~GC_ThreadingSpaceShapes (  )  [inline, virtual]

Definition at line 349 of file GC_ThreadingSpace.hh.


Member Function Documentation

virtual SuperSpace* cpsp::gecode::GC_ThreadingSpaceShapes::copy ( bool  share  )  [inline, virtual]

Reimplemented from cpsp::gecode::GC_ThreadingSpace.

Definition at line 352 of file GC_ThreadingSpace.hh.

virtual int cpsp::gecode::GC_ThreadingSpace::getIndex ( const Gecode::VarBase *  vb  )  const [inline, virtual, inherited]

Definition at line 129 of file GC_ThreadingSpace.hh.

virtual int cpsp::gecode::GC_ThreadingSpace::getIndex ( const Gecode::Int::IntView &  v  )  const [inline, virtual, inherited]

Definition at line 120 of file GC_ThreadingSpace.hh.

int cpsp::gecode::GC_ThreadingSpace::getRank ( int  index  )  const [inherited]

Definition at line 286 of file GC_ThreadingSpace.cc.

biu::IndexVec cpsp::gecode::GC_ThreadingSpace::getSolution (  )  const [virtual, inherited]

Returns a vector of indexed points thats a structure for the current CPSP.

Definition at line 271 of file GC_ThreadingSpace.cc.

virtual void cpsp::gecode::GC_ThreadingSpace::handleSolution ( GC_ThreadingSpace solution  )  [inline, virtual, inherited]

Definition at line 113 of file GC_ThreadingSpace.hh.

void cpsp::gecode::GC_ThreadingSpace::print ( void   )  const [virtual, inherited]

Definition at line 59 of file GC_ThreadingSpace.cc.


Field Documentation

Gecode::IntVarArray cpsp::gecode::GC_ThreadingSpace::domains [protected, inherited]

the position domains for the sequence elements

Definition at line 87 of file GC_ThreadingSpace.hh.

std::vector<int> cpsp::gecode::GC_ThreadingSpace::rank [protected, inherited]

Definition at line 89 of file GC_ThreadingSpace.hh.


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