Spacecraft Control Bundle 1
fsw_clips.h
1/*
2 * Header file for object of class es_template.
3 * Copyright 2008, Princeton Satellite Systems, Inc.
4 * All Rights Reserved.
5 */
6
7#include <ControlDeck2/ControlDeck2.h>
8#include "sc_events.h"
9
10#ifndef FSW_CLIPS
11#define FSW_CLIPS
12
13
15
18class fsw_clips : public cd_control_module
19{
20 public:
22 fsw_clips (const char * mod_name);
24 void initialize_data();
26 void initialize();
28 void handle_event(int code);
29
30 protected:
32 CD_CREATE_REF clips_rule_file_ref;
34 CD_CREATE_REF clips_facts_ref;
36 CD_CREATE_REF clips_results_ref;
37
38 int clips_available;
39
40};
41
42extern "C"
43{
44 cd_control_module *fsw_clips_builder(const char *name);
45}
46
47#endif
This module implements the CLIPS expert system.
Definition: fsw_clips.h:19
void initialize_data()
Creates data used by other modules.
Definition: fsw_clips.cc:26
CD_CREATE_REF clips_results_ref
CLIPS results.
Definition: fsw_clips.h:36
CD_CREATE_REF clips_rule_file_ref
CLIPS rule file.
Definition: fsw_clips.h:32
void handle_event(int code)
Performs all processing.
Definition: fsw_clips.cc:91
fsw_clips(const char *mod_name)
Constructor.
Definition: fsw_clips.cc:19
CD_CREATE_REF clips_facts_ref
CLIPS facts.
Definition: fsw_clips.h:34
void initialize()
One time initialization.
Definition: fsw_clips.cc:68
Define the trigger and variables names for the software system.