NAME
AI::ExpertSystem::Advanced::Viewer::Base - Base class for all views.
DESCRIPTION
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.
debug($msg)
Will be used to debug any task done by AI::ExpertSystem::Advanced. It only receives one parameter that is the message to print.
print($msg)
Will be used to print anything that is not a debug messages. It only receives one parameter that is the message to print.
print_error($msg)
Will be used to print any error of AI::ExpertSystem::Advanced. It only receives one parameter that is the message to print.
ask($message, @options)
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.
explain($yaml_summary)
Used to explain what happened. The passed argument is a YAML string that has all the information required to make a good explanation.
AUTHOR
Pablo Fischer (pablo@pablo.com.mx).
COPYRIGHT
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.