GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HAILO::ROLE::STORAGE (3)

.ds Aq ’

NAME

Hailo::Role::Storage - A role representing a Hailo storage backend

CONTENTS

ATTRIBUTES

CWready

Ask the storage backend if it considers itself ready to go. E.g. a storage that requires a brain would return false if it wasn’t passed one.

CWinitialized

If you’re connecting to an existing storage that already has a populated schema and is ready to go this’ll return true.

CWorder

The Markov order (chain length) being used.

CWbrain

The name of the resource (file name, database name) to use as storage.

METHODS

CWnew

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

CWsave

Saves the current state.

CWlearn_tokens

Learns from a sequence of tokens. Takes an array reference of strings.

CWmake_reply

Takes an (optional) array reference of tokens and returns a reply (arrayref of tokens) that might be relevant.

CWtoken_total

Takes no arguments. Returns the number of tokens the brain knows.

CWexpr_total

Takes no arguments. Returns the number of expressions the brain knows.

CWstart_learning

Takes no arguments. This method is called by Hailo right before learning begins.

CWstop_learning

Takes no arguments. This method is called by Hailo right after learning finishes.

CWstart_training

Takes no arguments. This method is called by Hailo right before training begins.

CWstop_training

Takes no arguments. This method is called by Hailo right after training finishes.

AUTHOR

Hinrik Oern Sigurd`sson, hinrik.sig@gmail.com

LICENSE AND COPYRIGHT

Copyright 2010 Hinrik Oern Sigurd`sson

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HAILO::ROLE::STORAGE (3) 2011-09-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.