/** * @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 { public: virtual ~InterpreterDraft6() {}; protected: void enterStates(const Arabica::XPath::NodeSet& enabledTransitions); void addStatesToEnter(const Arabica::DOM::Element& state, Arabica::XPath::NodeSet& statesToEnter, Arabica::XPath::NodeSet& statesForDefaultEntry, Arabica::XPath::NodeSet& defaultHistoryContent); void exitStates(const Arabica::XPath::NodeSet& enabledTransitions); Arabica::XPath::NodeSet removeConflictingTransitions(const Arabica::XPath::NodeSet& enabledTransitions); bool isPreemptingTransition(const Arabica::DOM::Element& t1, const Arabica::DOM::Element& t2); bool isCrossingBounds(const Arabica::DOM::Element& transition); bool isWithinParallel(const Arabica::DOM::Element& transition); Arabica::DOM::Node findLCPA(const Arabica::XPath::NodeSet& states); std::map, bool> _transWithinParallel; // this is costly to calculate virtual void handleDOMEvent(Arabica::DOM::Events::Event& event); }; } #endif /* end of include guard: INTERPRETERDRAFT6_H_JAXK9FE1 */