Alps  2.0.2
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  * Aykut Bulut, Lehigh University *
11  * Ted Ralphs, Lehigh University *
12  * *
13  * Conceptual Design: *
14  * *
15  * Yan Xu, Lehigh University *
16  * Ted Ralphs, Lehigh University *
17  * Laszlo Ladanyi, IBM T.J. Watson Research Center *
18  * Matthew Saltzman, Clemson University *
19  * *
20  * *
21  * Copyright (C) 2001-2023, Lehigh University, Yan Xu, Aykut Bulut, and *
22  * Ted Ralphs. *
23  * All Rights Reserved. *
24  *===========================================================================*/
25 
26 
27 #ifndef AlpsNodeDesc_h_
28 #define AlpsNodeDesc_h_
29 
30 #include "AlpsKnowledge.h"
31 
32 class AlpsModel;
33 
45 class AlpsNodeDesc: virtual public AlpsKnowledge {
46  public:
48 
53  virtual ~AlpsNodeDesc() {}
55 
57 
61  virtual AlpsReturnStatus encode(AlpsEncoded * encoded) const {
62  return AlpsReturnStatusOk;
63  }
66  return AlpsReturnStatusOk;
67  }
68 };
69 
70 #endif
AlpsNodeDesc::AlpsNodeDesc
AlpsNodeDesc(AlpsKnowledgeBroker *broker)
Definition: AlpsNodeDesc.h:51
AlpsKnowledgeTypeNodeDesc
@ AlpsKnowledgeTypeNodeDesc
Definition: Alps.h:227
AlpsKnowledge.h
AlpsNodeDesc::AlpsNodeDesc
AlpsNodeDesc()
Default constructor.
Definition: AlpsNodeDesc.h:50
AlpsModel
AlpsModel is a base class for user application problem data.
Definition: AlpsModel.h:132
AlpsReturnStatus
AlpsReturnStatus
Definition: Alps.h:261
AlpsNodeDesc::decodeToSelf
virtual AlpsReturnStatus decodeToSelf(AlpsEncoded &encoded)
Unpack fields from the given AlpsEncoded object.
Definition: AlpsNodeDesc.h:65
AlpsEncoded
Definition: AlpsEncoded.h:64
AlpsReturnStatusOk
@ AlpsReturnStatusOk
Definition: Alps.h:262
AlpsNodeDesc
This is an abstract base class for subproblem data to be stored in a tree node.
Definition: AlpsNodeDesc.h:45
AlpsKnowledge::broker
AlpsKnowledgeBroker * broker()
Get pointer to the knowledge broker.
Definition: AlpsKnowledge.h:86
AlpsKnowledge
The abstract base class of Alps knowledges generated during the search.
Definition: AlpsKnowledge.h:63
AlpsKnowledgeBroker
The base class of knowledge broker class.
Definition: AlpsKnowledgeBroker.h:52
AlpsKnowledge::encode
AlpsEncoded * encode() const
Encode the content of this into an AlpsEncoded object and return a pointer to it.
AlpsKnowledge::AlpsKnowledge
AlpsKnowledge()
Default constructor.
Definition: AlpsKnowledge.h:72
AlpsNodeDesc::~AlpsNodeDesc
virtual ~AlpsNodeDesc()
Destructor.
Definition: AlpsNodeDesc.h:53
AlpsNodeDesc::encode
virtual AlpsReturnStatus encode(AlpsEncoded *encoded) const
Pack this node description into the given AlpsEncoded object.
Definition: AlpsNodeDesc.h:61