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
void set_watch_activations(bool set=true)
Definition: rule.cpp:124
bool activations_watched()
Definition: rule.cpp:70
void set_break()
Definition: rule.cpp:118
CLIPSPointer< Rule > pointer
Definition: rule.h:31
Rule(Environment &environment, void *cobj=NULL)
Definition: rule.cpp:29
void refresh()
Definition: rule.cpp:105
Rule::pointer next()
Definition: rule.cpp:84
bool retract()
Definition: rule.cpp:136
std::string name()
Definition: rule.cpp:57
Definition: environment.h:57
std::string formatted()
Definition: rule.cpp:64
std::string module_name()
Definition: rule.cpp:50
Environment & environment() const
Definition: environmentobject.cpp:33
bool is_deletable()
Definition: rule.cpp:98
bool is_breakpoint_set()
Definition: rule.cpp:43
void * cobj() const
Returns a pointer to the underlying CLIPS C object.
Definition: object.cpp:33
~Rule()
Definition: rule.cpp:39
bool firings_watched()
Definition: rule.cpp:77
static Rule::pointer create(Environment &environment, void *cobj=NULL)
Definition: rule.cpp:34
void set_watch_firings(bool set=true)
Definition: rule.cpp:130
bool remove_break()
Definition: rule.cpp:111
Definition: rule.h:29
Definition: environmentobject.h:31

Generated on Wed Sep 3 2014 22:34:42 for clipsmm by doxygen 1.8.7