/*******************************************************************************
AToMPM - A Tool for Multi-Paradigm Modelling
Copyright (c) 2012 Conner Hansen (chansen@crimson.ua.edu)
This file is part of AToMPM.
AToMPM is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
AToMPM 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with AToMPM. If not, see .
*******************************************************************************/
/**
* This object defines my DummyStateChart formalism. It has
* State and Transition methods.
*/
var DummyStateChart = function(){
var states = new Array();
var transitions = new Array();
var currentState = null;
this.State = function(name){
var out = new Array();
this.addTransition = function( transition ){
out.push( transition );
};
this.fire = function( trigger ){
for(var i=0; i