/** * @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 INTERPRETERDRAFT6_H_JAXK9FE1 #define INTERPRETERDRAFT6_H_JAXK9FE1 #include "uscxml/Interpreter.h" namespace uscxml { class USCXML_API InterpreterDraft6 : public InterpreterImpl { protected: void interpret(); InterpreterState step(bool blocking); void stabilize(); void microstep(const Arabica::XPath::NodeSet& enabledTransitions); void enterStates(const Arabica::XPath::NodeSet& enabledTransitions); void addStatesToEnter(const Arabica::DOM::Node& state, Arabica::XPath::NodeSet& statesToEnter, Arabica::XPath::NodeSet& statesForDefaultEntry); void exitStates(const Arabica::XPath::NodeSet& enabledTransitions); void exitInterpreter(); Arabica::XPath::NodeSet selectEventlessTransitions(); Arabica::XPath::NodeSet selectTransitions(const std::string& event); Arabica::XPath::NodeSet filterPreempted(const Arabica::XPath::NodeSet& enabledTransitions); bool isPreemptingTransition(const Arabica::DOM::Node& t1, const Arabica::DOM::Node& t2); bool isEnabledTransition(const Arabica::DOM::Node& transition, const std::string& event); Arabica::XPath::NodeSet getDocumentInitialTransitions(); bool isCrossingBounds(const Arabica::DOM::Node& transition); bool isWithinParallel(const Arabica::DOM::Node& transition); Arabica::DOM::Node findLCPA(const Arabica::XPath::NodeSet& states); }; } #endif /* end of include guard: INTERPRETERDRAFT6_H_JAXK9FE1 */