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

Generated on Wed Jan 19 2022 00:00:00 for clipsmm by doxygen 1.9.4