Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

final_automat.php

Go to the documentation of this file.
00001 
00002 /** @file final_automat.php
00003 * Definition of class final_automat.
00004 */
00005 #include "error_logger.php"
00006 /**
00007 * Final automat.
00008 * This class is an attempt to construct flexible system
00009 * that represents final automat.
00010 * The main ability of final automat is to have number of
00011 * linked states. The flexibility is the thing that every state has a number of
00012 * parent states which know how to go in that new state and this is all 
00013 * knowledge that has any state.
00014 * It is meaning that final_automat will be extended with some another class.
00015 * Let call it foo. foo can be in various states, but two (foo_1 and foo_2) are
00016 * the main states. Howewer from state foo_1 we can go to another states
00017 * foo_1_a, foo_1_b and foo_1_c. These states : public  foo_1.
00018 * Howewer, by example, we must have ability to return from state foo_1_b to
00019 * state foo_1.
00020 */
00021 class final_automat : public  error_logger
00022 {
00023 public:
00024   /**
00025   * Produce state.
00026   * Produce state according to data.
00027   * @param data - any data identificating state
00028   * @return next step object according to requested state
00029   */
00030   function &produce( data )
00031   {
00032     return this;
00033   }
00034   /**
00035   * Action method.
00036   * @param data - any data needed to act.
00037   */
00038   function do_it( data )
00039   {
00040   }
00041 }
00042 X-Powered-By: PHP/4.0.8-dev
00043 Content-type: text/html
00044 
00045 

Generated on Tue Mar 11 08:35:12 2003 for SES by doxygen1.2.16