#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. |
Has a priority for comparison and a runlimit
CLIPS::Environment::Environment::Job::Job | ( | int | p, | |
long int | rl | |||
) | [inline] |
Constructor that takes a priority and a CLIPS runlimit.
bool CLIPS::Environment::Environment::Job::operator< | ( | const Job & | other | ) | const [inline] |
Comparison operator that compares the priority member.
References CLIPS::Environment::Environment::Job::priority.
int CLIPS::Environment::Environment::Job::priority |
The priority of this job.
The higher the priority, the higher in the queue.
Referenced by CLIPS::Environment::Environment::Job::operator<().
long int CLIPS::Environment::Environment::Job::runlimit |
How many rules should fire.
If runlimit is negative, rules will fire until the agenda is empty