Ævar Arnfjörð Bjarmason > Hailo-0.72 > Hailo::Role::Engine

Download:
Hailo-0.72.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  2
View/Report Bugs
Module Version: 0.72   Source  

NAME ^

Hailo::Role::Engine - A role representing a Hailo engine backend

ATTRIBUTES ^

A Hailo::Engine::* gets the following attributes by using this role:

storage

A storage object the engine should use to get data from.

order

The current Markov order used by the storage object.

METHODS ^

new

This is the constructor. It accept the attributes specified in "ATTRIBUTES".

learn

Learn from the given input and add it to storage.

reply

Reply to the given input using the storad data.

AUTHOR ^

Ævar Arnfjörð Bjarmason <avar@cpan.org>

LICENSE AND COPYRIGHT ^

Copyright 2010 Ævar Arnfjörð Bjarmason.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: