- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

AlpsNodeDesc.h
Go to the documentation of this file.
1 /*===========================================================================*
2 * This file is part of the Abstract Library for Parallel Search (ALPS). *
3 * *
4 * ALPS is distributed under the Eclipse Public License as part of the *
5 * COIN-OR repository (http://www.coin-or.org). *
6 * *
7 * Authors: *
8 * *
9 * Yan Xu, Lehigh University *
10 * Ted Ralphs, Lehigh University *
11 * *
12 * Conceptual Design: *
13 * *
14 * Yan Xu, Lehigh University *
15 * Ted Ralphs, Lehigh University *
16 * Laszlo Ladanyi, IBM T.J. Watson Research Center *
17 * Matthew Saltzman, Clemson University *
18 * *
19 * *
20 * Copyright (C) 2001-2013, Lehigh University, Yan Xu, and Ted Ralphs. *
21 *===========================================================================*/
22
23 #ifndef AlpsNodeDesc_h_
24 #define AlpsNodeDesc_h_
25
26 //#include "AlpsModel.h"
27
28 class AlpsModel;
29
30 //#############################################################################
34 //#############################################################################
35 class AlpsNodeDesc {
36
37 protected:
38
40 // Should allow change model due to presolve
41 AlpsModel* model_;
42
43 public:
44
45 AlpsNodeDesc() {}
46 AlpsNodeDesc(AlpsModel* m)
47 { model_ = m; }
48
49 virtual ~AlpsNodeDesc() {}
50
51 inline AlpsModel* getModel() const { return model_; }
52 inline void setModel(AlpsModel* m) { model_ = m; }
53
55 virtual AlpsReturnStatus encode(AlpsEncoded *encoded) const {
56 AlpsReturnStatus status = AlpsReturnStatusOk;
57 // Should never be called.
58 assert(0);
59 return status;
60 }
61
63 virtual AlpsReturnStatus decode(AlpsEncoded &encoded) {
64 AlpsReturnStatus status = AlpsReturnStatusOk;
65 assert(0);
66 return status;
67 }
68 };
69
70 #endif
AlpsNodeDesc::setModel
void setModel(AlpsModel *m)
Definition: AlpsNodeDesc.h:52
AlpsReturnStatus
AlpsReturnStatus
Definition: Alps.h:118
AlpsNodeDesc::AlpsNodeDesc
AlpsNodeDesc()
Definition: AlpsNodeDesc.h:45
AlpsNodeDesc::decode
virtual AlpsReturnStatus decode(AlpsEncoded &encoded)
Unpack a node description from an encoded.
Definition: AlpsNodeDesc.h:63
AlpsModel
Definition: AlpsModel.h:36
AlpsNodeDesc::encode
virtual AlpsReturnStatus encode(AlpsEncoded *encoded) const
Pack node description into an encoded.
Definition: AlpsNodeDesc.h:55
AlpsEncoded
This data structure is to contain the packed form of an encodable knowledge.
Definition: AlpsEncoded.h:25
AlpsNodeDesc::~AlpsNodeDesc
virtual ~AlpsNodeDesc()
Definition: AlpsNodeDesc.h:49
AlpsReturnStatusOk
Definition: Alps.h:119
AlpsNodeDesc::getModel
AlpsModel * getModel() const
Definition: AlpsNodeDesc.h:51
AlpsNodeDesc::AlpsNodeDesc
AlpsNodeDesc(AlpsModel *m)
Definition: AlpsNodeDesc.h:46
AlpsNodeDesc::model_
AlpsModel * model_
A pointer to model.
Definition: AlpsNodeDesc.h:41
AlpsNodeDesc
A class to refer to the description of a search tree node.
Definition: AlpsNodeDesc.h:35