clipsmm - C++ CLIPS Interface Library

clipsmm logo
rule.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 CLIPSRULE_H
20 #define CLIPSRULE_H
21 
23 
24 namespace CLIPS {
25 
29 class Rule: public EnvironmentObject {
30 public:
31  typedef CLIPSPointer<Rule> pointer;
32 
33  Rule( Environment& environment, void* cobj=NULL );
34 
35  static Rule::pointer create( Environment& environment, void* cobj=NULL );
36 
37  ~Rule();
38 
39  bool is_breakpoint_set();
40 
41  std::string module_name();
42 
43  std::string name();
44 
45  std::string formatted();
46 
47  bool activations_watched();
48 
49  bool firings_watched();
50 
52 
53  bool is_deletable();
54 
55  void refresh();
56 
57  bool remove_break();
58 
59  void set_break();
60 
61  void set_watch_activations( bool set=true );
62 
63  void set_watch_firings( bool set=true );
64 
65  bool retract();
66 
69  protected:
70 
71 };
72 
73 }
74 
75 #endif
CLIPS::Rule::retract
bool retract()
Definition: rule.cpp:153
CLIPS::Rule::firings_watched
bool firings_watched()
Definition: rule.cpp:94
CLIPS::Object::cobj
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:50
CLIPS::Rule::is_breakpoint_set
bool is_breakpoint_set()
Definition: rule.cpp:60
CLIPS::Rule::is_deletable
bool is_deletable()
Definition: rule.cpp:115
CLIPS::Rule::set_break
void set_break()
Definition: rule.cpp:135
CLIPS::Rule::~Rule
~Rule()
Definition: rule.cpp:56
CLIPS::Rule::formatted
std::string formatted()
Definition: rule.cpp:81
CLIPS::Rule::Rule
Rule(Environment &environment, void *cobj=NULL)
Definition: rule.cpp:46
rule.h
CLIPS::Rule::create
static Rule::pointer create(Environment &environment, void *cobj=NULL)
Definition: rule.cpp:51
CLIPS::Rule::remove_break
bool remove_break()
Definition: rule.cpp:128
CLIPS::EnvironmentObject::environment
Environment & environment() const
Definition: environmentobject.cpp:50
CLIPS::Rule::set_watch_activations
void set_watch_activations(bool set=true)
Definition: rule.cpp:141
CLIPS::Rule::activations_watched
bool activations_watched()
Definition: rule.cpp:87
CLIPS::Rule::set_watch_firings
void set_watch_firings(bool set=true)
Definition: rule.cpp:147
CLIPS::Rule::module_name
std::string module_name()
Definition: rule.cpp:67
CLIPS::Rule::name
std::string name()
Definition: rule.cpp:74
CLIPS
Definition: activation.cpp:29
CLIPS::Rule::refresh
void refresh()
Definition: rule.cpp:122
CLIPS::Rule::next
Rule::pointer next()
Definition: rule.cpp:101
environment.h
environmentobject.h
CLIPS::Rule::pointer
CLIPSPointer< Rule > pointer
Definition: rule.h:65

Generated on Mon Jul 27 2020 00:00:00 for clipsmm by doxygen 1.8.18