Spacecraft Control Bundle 1
fsw_clips Class Reference

This module implements the CLIPS expert system. More...

#include <fsw_clips.h>

Inheritance diagram for fsw_clips:

Public Member Functions

 fsw_clips (const char *mod_name)
 Constructor. More...
 
void initialize_data ()
 Creates data used by other modules. More...
 
void initialize ()
 One time initialization. More...
 
void handle_event (int code)
 Performs all processing. More...
 

Protected Attributes

CD_CREATE_REF clips_rule_file_ref
 CLIPS rule file. More...
 
CD_CREATE_REF clips_facts_ref
 CLIPS facts. More...
 
CD_CREATE_REF clips_results_ref
 CLIPS results. More...
 
int clips_available
 

Detailed Description

This module implements the CLIPS expert system.

CLIPS is open source expert system software. You have to provide a rules deck for your system. A sample deck is provided in ControlDeckRules.CLP.

Constructor & Destructor Documentation

◆ fsw_clips()

fsw_clips::fsw_clips ( const char *  mod_name)

Constructor.

Member Function Documentation

◆ handle_event()

void fsw_clips::handle_event ( int  code)

Performs all processing.

References clips_facts_ref, and clips_results_ref.

◆ initialize()

void fsw_clips::initialize ( )

One time initialization.

References clips_rule_file_ref.

◆ initialize_data()

void fsw_clips::initialize_data ( )

Creates data used by other modules.

Request the FSW_CLIPS_TRIGGER.

References clips_facts_ref, clips_results_ref, clips_rule_file_ref, and FSW_CLIPS_TRIGGER.

Member Data Documentation

◆ clips_facts_ref

CD_CREATE_REF fsw_clips::clips_facts_ref
protected

CLIPS facts.

Referenced by handle_event(), and initialize_data().

◆ clips_results_ref

CD_CREATE_REF fsw_clips::clips_results_ref
protected

CLIPS results.

Referenced by handle_event(), and initialize_data().

◆ clips_rule_file_ref

CD_CREATE_REF fsw_clips::clips_rule_file_ref
protected

CLIPS rule file.

Referenced by initialize(), and initialize_data().


The documentation for this class was generated from the following files: