AI::ExpertSystem::Advanced::Viewer::Base - Base class for all views.
All views that AI::ExpertSystem::Advanced can use should extend from this class (or from parents that extend from it).
Please note that the methods of this class should not be called in an abstract context cause otherwise AI::ExpertSystem::Advanced will die.
Will be used to debug any task done by AI::ExpertSystem::Advanced. It only receives one parameter that is the message to print.
Will be used to print anything that is not a debug messages. It only receives one parameter that is the message to print.
Will be used to print any error of AI::ExpertSystem::Advanced. It only receives one parameter that is the message to print.
Will be used to ask the user for some information. It will receive a string, the question to ask and an array of all the possible options.
Please return only one option and this should be any of the ones listed in @options cause otherwise AI::ExpertSystem::Advanced will die.
@options
Used to explain what happened. The passed argument is a YAML string that has all the information required to make a good explanation.
Pablo Fischer (pablo@pablo.com.mx).
Copyright (C) 2010 by Pablo Fischer.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install AI::ExpertSystem::Advanced, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::ExpertSystem::Advanced
CPAN shell
perl -MCPAN -e shell install AI::ExpertSystem::Advanced
For more information on module installation, please visit the detailed CPAN module installation guide.