clipsmm - C++ CLIPS Interface Library

clipsmm logo
CLIPS::Environment::Job Struct Reference

Encapsulates the concept of a CLIPS job. More...

#include <environment.h>

Public Member Functions

 Job (int p, long int rl)
 Constructor that takes a priority and a CLIPS runlimit.
 
bool operator< (const Job &other) const
 Comparison operator that compares the priority member.
 

Public Attributes

int priority
 The priority of this job.
 
long int runlimit
 How many rules should fire.
 

Detailed Description

Encapsulates the concept of a CLIPS job.

Has a priority for comparison and a runlimit

Constructor & Destructor Documentation

◆ Job()

CLIPS::Environment::Job::Job ( int p,
long int rl )
inline

Constructor that takes a priority and a CLIPS runlimit.

References priority, and runlimit.

Referenced by operator<().

Member Function Documentation

◆ operator<()

bool CLIPS::Environment::Job::operator< ( const Job & other) const
inline

Comparison operator that compares the priority member.

References Job(), and priority.

Member Data Documentation

◆ priority

int CLIPS::Environment::Job::priority

The priority of this job.

The higher the priority, the higher in the queue.

Referenced by Job(), and operator<().

◆ runlimit

long int CLIPS::Environment::Job::runlimit

How many rules should fire.

If runlimit is negative, rules will fire until the agenda is empty

Referenced by Job().


The documentation for this struct was generated from the following file:

Generated on Wed Jul 17 2024 00:00:00 for clipsmm by doxygen 1.13.2