NAME
Siebel::Srvrmgr::ListParser::FSA - the FSA::Rules class specification for Siebel::Srvrmgr::ListParser
SYNOPSIS
use FSA::Rules;
my $fsa = Siebel::Srvrmgr::ListParser::FSA->get_fsa();
# do something with $fsa
# for getting a diagram exported in your currently directory with a onliner
perl -MSiebel::Srvrmgr::ListParser::FSA -e "Siebel::Srvrmgr::ListParser::FSA->export_diagram"
DESCRIPTION
Siebel::Srvrmgr::ListParser::FSA subclasses the state machine implemented by FSA::Rules, which is used by Siebel::Srvrmgr::ListParser class.
This class also have a Log::Log4perl instance built in.
EXPORTS
Nothing.
METHODS
export_diagram
Creates a PNG file with the state machine diagram in the current directory where the method was invoked.
new
Returns the state machine object defined for usage with a Siebel::Srvrmgr::ListParser instance.
Expects as parameter a hash table reference containing all the commands alias as keys and their respective regular expressions to detect state change as values. See Siebel::Srvrmgr::ListParser::OutputFactory get_mapping
method for details.
set_data
Set the array reference of the data to be parsed by this object.
get_curr_line
Returns a string, the current line being processed by this object.
SEE ALSO
CAVEATS
This class has some problems, most due the API of FSA::Rules: since the state machine is a group of references to subroutines, it holds references to Siebel::Srvrmgr::ListParser, which basically causes circular references between the two classes.
There is some workaround to the caused memory leaks due this configuration, but in future releases FSA::Rules may be replaced to something else.
AUTHOR
Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 of Alceu Rodrigues de Freitas Junior, <arfreitas@cpan.org>.
This file is part of Siebel Monitoring Tools.
Siebel Monitoring Tools is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Siebel Monitoring Tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.