/** * @file * @author 2012-2013 Stefan Radomski (stefan.radomski@cs.tu-darmstadt.de) * @copyright Simplified BSD * * @cond * This program is free software: you can redistribute it and/or modify * it under the terms of the FreeBSD license as published by the FreeBSD * project. * * This program 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. * * You should have received a copy of the FreeBSD license along with this * program. If not, see . * @endcond */ #ifndef INTERPRETERDRAFT7_H_WLJEI019 #define INTERPRETERDRAFT7_H_WLJEI019 #include "uscxml/Interpreter.h" namespace uscxml { class InterpreterDraft7 : public InterpreterImpl { void interpret(); void mainEventLoop(); void exitInterpreter(); void microstep(const Arabica::XPath::NodeSet& enabledTransitions); Arabica::XPath::NodeSet selectEventlessTransitions(); Arabica::XPath::NodeSet selectTransitions(const std::string& event); void enterStates(const Arabica::XPath::NodeSet& enabledTransitions); void exitStates(const Arabica::XPath::NodeSet& enabledTransitions); Arabica::XPath::NodeSet computeExitSet(const Arabica::XPath::NodeSet& enabledTransitions, const Arabica::XPath::NodeSet& statesToExit); Arabica::XPath::NodeSet computeEntrySet(const Arabica::XPath::NodeSet& transitions, const Arabica::XPath::NodeSet& statesToEnter, const Arabica::XPath::NodeSet& statesForDefaultEntry); Arabica::XPath::NodeSet removeConflictingTransitions(const Arabica::XPath::NodeSet& enabledTransitions); Arabica::DOM::Node getTransitionDomain(const Arabica::DOM::Node& transition); Arabica::XPath::NodeSet addDescendentStatesToEnter(const Arabica::DOM::Node& state, const Arabica::XPath::NodeSet& statesToEnter, const Arabica::XPath::NodeSet& statesForDefaultEntry); Arabica::XPath::NodeSet addAncestorsStatesToEnter(const Arabica::DOM::Node& state, const Arabica::DOM::Node& ancestor, const Arabica::XPath::NodeSet& statesToEnter, const Arabica::XPath::NodeSet& statesForDefaultEntry); }; } #endif /* end of include guard: INTERPRETERDRAFT7_H_WLJEI019 */