clipsmm - C++ CLIPS Interface Library

clipsmm logo
activation.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Rick L. Vinyard, Jr. *
3  * rvinyard@cs.nmsu.edu *
4  * *
5  * This file is part of the clipsmm library. *
6  * *
7  * The clipsmm library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * version 3 as published by the Free Software Foundation. *
10  * *
11  * The clipsmm library is distributed in the hope that it will be *
12  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14  * General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this software. If not see <http://www.gnu.org/licenses/>. *
18  ***************************************************************************/
19 #ifndef CLIPSACTIVATION_H
20 #define CLIPSACTIVATION_H
21 
22 #include <string>
23 
25 
26 namespace CLIPS {
27 
31  class Activation : public EnvironmentObject {
32  public:
33  typedef CLIPSPointer<Activation> pointer;
34 
35  Activation( Environment& environment, void* cobj = NULL );
36 
37  static Activation::pointer create( Environment& environment, void* cobj = NULL );
38 
39  ~Activation();
40 
41  std::string name();
42 
43  std::string formatted();
44 
45  bool deactivate();
46 
47  int salience();
48 
53  int set_salience( int sal );
54 
56 
57  };
58 
59 }
60 
61 #endif
CLIPS::Object::cobj
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:50
CLIPS::Activation::Activation
Activation(Environment &environment, void *cobj=NULL)
Definition: activation.cpp:48
CLIPS::Activation::next
Activation::pointer next()
Definition: activation.cpp:101
CLIPS::Activation::formatted
std::string formatted()
Definition: activation.cpp:66
CLIPS::EnvironmentObject::m_environment
Environment & m_environment
Definition: environmentobject.h:58
CLIPS::EnvironmentObject
Definition: environmentobject.h:48
activation.h
CLIPS::Activation::pointer
CLIPSPointer< Activation > pointer
Definition: activation.h:67
CLIPS::Environment
Definition: environment.h:57
CLIPS::Activation::~Activation
~Activation()
Definition: activation.cpp:56
CLIPS::Activation::create
static Activation::pointer create(Environment &environment, void *cobj=NULL)
Definition: activation.cpp:51
CLIPS::EnvironmentObject::environment
Environment & environment() const
Definition: environmentobject.cpp:50
CLIPS::Activation::name
std::string name()
Definition: activation.cpp:58
CLIPS::Activation::salience
int salience()
Definition: activation.cpp:85
CLIPS
Definition: activation.cpp:29
environment.h
CLIPS::Activation::deactivate
bool deactivate()
Definition: activation.cpp:77
environmentobject.h
CLIPS::Activation::set_salience
int set_salience(int sal)
Sets the salience value.
Definition: activation.cpp:93
CLIPS::Object::m_cobj
void * m_cobj
The underlying CLIPS C object.
Definition: object.h:79

Generated on Tue Jan 28 2020 00:00:00 for clipsmm by doxygen 1.8.17