/* This file is part of AToMPM - A Tool for Multi-Paradigm Modelling * Copyright 2011 by the AToMPM team and licensed under the LGPL * See COPYING.lesser and README.md in the root of this project for full details */ /** * 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