|
@@ -5,7 +5,7 @@
|
|
|
* @copyright (c) 2007 OSI
|
|
|
* @author Frédéric G. MARAND
|
|
|
* @license Licensed under the CeCILL 2.0
|
|
|
- * @version CVS: $Id: Finite_State_Machine.php,v 1.8 2007-06-10 16:30:30 marand Exp $
|
|
|
+ * @version CVS: $Id: Finite_State_Machine.php,v 1.9 2007-06-10 19:39:54 marand Exp $
|
|
|
* @link http:
|
|
|
* @since Not applicable yet
|
|
|
* @package fsm
|
|
@@ -13,12 +13,17 @@
|
|
|
* @todo replace setAttribute('id',...) by setIdAttribute when PHP5.2 becomes mandatory
|
|
|
*/
|
|
|
|
|
|
+
|
|
|
+ * needed notably for autoload and func_name()
|
|
|
+ */
|
|
|
require_once('misc.php');
|
|
|
+
|
|
|
$erFiniteStateMachine = error_reporting(E_ALL|E_STRICT);
|
|
|
|
|
|
|
|
|
* This class defines a possible outcome for a given FSM transition
|
|
|
- *
|
|
|
+ * @package fsm
|
|
|
+ * @subpackage fsm.core
|
|
|
*/
|
|
|
class Fsm_Result
|
|
|
{
|
|
@@ -73,6 +78,8 @@ class Fsm_Result
|
|
|
* - send an idle event by using $this->idle()
|
|
|
* - submit any event (including idle) by using $this->apply_event($event_name)
|
|
|
*
|
|
|
+ * @package fsm
|
|
|
+ * @subpackage fsm.core
|
|
|
*/
|
|
|
abstract class Finite_State_Machine
|
|
|
{
|