
AI::ExpertSystem::Simple::Rule - A utility class for a simple expert system

This document refers to verion 1.2 of AI::ExpertSystem::Simple::Rule, released June 10, 2003

This is a utility class for AI::ExpertSystem::Simple

This class handles the rules
The constructor takes one argument, the NAME of the rule. The consition and actions are added later.
Resets the state of the rule back to active and all the condition attributes to untested.
This adds a condition attribute name / value pair.
This adds an action attribute name / value pair.
Returns the name of the rule.
Returns the current state of the rule.
The NAME / VALUE attribute pair is checked against the rule's conditions to see if a condition is met and the state of the rule is changed in light of the result.
Returns a list of the actions set in the rule.
Returns a list of the conditions matched in the rule.
Returns a list of all the unresolved condition of the rule.
None

None

When the constructor is initialised it requires one argument. This message is given if more or less arguments were supplied.
The corrct number of arguments were supplied to the constructor, however the first argument, NAME, was undefined.
When the method is called it requires no arguments. This message is given if more or less arguments were supplied.
When the method is called it requires two arguments. This message is given if more or less arguments were supplied.
The corrct number of arguments were supplied with the method call, however the first argument, NAME, was undefined.
The corrct number of arguments were supplied with the method call, however the second argument, VALUE, was undefined.
This method has already been called and the value set. It cannot be called twice.
When the method is called it requires two arguments. This message is given if more or less arguments were supplied.
The corrct number of arguments were supplied with the method call, however the first argument, NAME, was undefined.
The corrct number of arguments were supplied with the method call, however the second argument, VALUE, was undefined.
This method has already been called and the value set. It cannot be called twice.
When the method is called it requires no arguments. This message is given if more or less arguments were supplied.
When the method is called it requires no arguments. This message is given if more or less arguments were supplied.
When the method is called it requires two arguments. This message is given if more or less arguments were supplied.
The corrct number of arguments were supplied with the method call, however the first argument, NAME, was undefined.
The corrct number of arguments were supplied with the method call, however the second argument, VALUE, was undefined.
When the method is called it requires no arguments. This message is given if more or less arguments were supplied.
When the method is called it requires no arguments. This message is given if more or less arguments were supplied.
When the method is called it requires no arguments. This message is given if more or less arguments were supplied.

None

See Rules.t in the test directory

AI::ExpertSystem::Simple - The base class for the expert system
AI::ExpertSystem::Simple::Goal - A utility class
AI::ExpertSystem::Simple::knowledge - A utility class

Peter Hickman (peterhi@ntlworld.com)

Copyright (c) 2003, Peter Hickman. All rights reserved.
This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.