AI::ExpertSystem::Simple::Goal - Utility class for a simple expert system
This document refers to verion 1.00 of AI::ExpertSystem::Simple::Goal, released April 25, 2003
This class handles the goal in the expert system and returns the answer when the goal is matched.
This is a utility class for AI::ExpertSystem::Simple
The constructor takes two arguments. The first, NAME, is the name of the attribute that when set will trigger the end of the consoltation. The second argument, MESSAGE, is the text that will be interpolated as the answer for the consoltation.
This method compares the given NAME with that of the attribute name given when the object was constructed and returns true if they are the same or false if not.
This method return the value of the NAME argument that was set when the object was constructed.
This method take VALUE to be the value of the goal attribute and will use it to interpolate and return the MESSAGE that was given when the object was constructed.
None
When the constructor is initialised it requires two arguments. This message is given if more or less arguments were supplied.
The correct number of arguments were supplied to the constructor, however the first argument, NAME, was undefined.
The correct number of arguments were supplied to the constructor, however the second argument, MESSAGE, was undefined.
When the method is called it requires one argument. This message is given if more or less arguments were supplied.
The correct number of arguments were supplied with the method call, however the first argument, NAME, was undefined.
When the method is called it takes no arguments. This message is given if some were supplied.
The correct number of arguments were supplied with the method call, however the first argument, VALUE, was undefined.
None to date
See Goal.t in the test directory
AI::ExpertSystem::Simple - The base class for the expert system shell
AI::ExpertSystem::Simple::Knowledge - A utility class
AI::ExpertSystem::Simple::Rules - 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.
To install AI::ExpertSystem::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::ExpertSystem::Simple
CPAN shell
perl -MCPAN -e shell install AI::ExpertSystem::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.