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

cpsp::gecode::GC_ThreadingSpace Class Reference

#include <GC_ThreadingSpace.hh>

Inheritance diagram for cpsp::gecode::GC_ThreadingSpace:

Detailed Description

CSP model to predict optimal structures in the HP model following the CPSP approach.

Definition at line 67 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_ThreadingSpace (bool share, GC_ThreadingSpace &toCopy)
 GC_ThreadingSpace (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, NeighPropLvl neighPropLvl=CUSTOM_2)
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_ThreadingSpace ()

Protected Attributes

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

Member Typedef Documentation

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

Definition at line 75 of file GC_ThreadingSpace.hh.

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

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_ThreadingSpace::GC_ThreadingSpace ( 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,
NeighPropLvl  neighPropLvl = CUSTOM_2 
)

Definition at line 77 of file GC_ThreadingSpace.cc.

cpsp::gecode::GC_ThreadingSpace::GC_ThreadingSpace ( bool  share,
GC_ThreadingSpace toCopy 
)

Definition at line 252 of file GC_ThreadingSpace.cc.

cpsp::gecode::GC_ThreadingSpace::~GC_ThreadingSpace (  )  [virtual]

Definition at line 260 of file GC_ThreadingSpace.cc.


Member Function Documentation

SuperSpace * cpsp::gecode::GC_ThreadingSpace::copy ( bool  share  )  [virtual]

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

Definition at line 129 of file GC_ThreadingSpace.hh.

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

Definition at line 120 of file GC_ThreadingSpace.hh.

int cpsp::gecode::GC_ThreadingSpace::getRank ( int  index  )  const

Definition at line 286 of file GC_ThreadingSpace.cc.

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

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]

Definition at line 113 of file GC_ThreadingSpace.hh.

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

Definition at line 59 of file GC_ThreadingSpace.cc.


Field Documentation

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

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]

Definition at line 89 of file GC_ThreadingSpace.hh.


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