/** * @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 INTERPRETERRC_H_WLJEI019 #define INTERPRETERRC_H_WLJEI019 #include "uscxml/Interpreter.h" namespace uscxml { class InterpreterRC : public InterpreterImpl { protected: void enterStates(const Arabica::XPath::NodeSet& enabledTransitions); void exitStates(const Arabica::XPath::NodeSet& enabledTransitions); Arabica::XPath::NodeSet removeConflictingTransitions(const Arabica::XPath::NodeSet& enabledTransitions); bool hasIntersection(const Arabica::XPath::NodeSet& nodeSet1, const Arabica::XPath::NodeSet& nodeSet2); Arabica::XPath::NodeSet computeExitSet(const Arabica::XPath::NodeSet& transitions); Arabica::XPath::NodeSet computeExitSet(const Arabica::DOM::Node& transition); void computeEntrySet(const Arabica::XPath::NodeSet& transitions, Arabica::XPath::NodeSet& statesToEnter, Arabica::XPath::NodeSet& statesForDefaultEntry, std::map >& defaultHistoryContent); void computeEntrySet(const Arabica::DOM::Node& transition, Arabica::XPath::NodeSet& statesToEnter, Arabica::XPath::NodeSet& statesForDefaultEntry, std::map >& defaultHistoryContent); Arabica::DOM::Node getTransitionDomain(const Arabica::DOM::Element& transition); Arabica::XPath::NodeSet getEffectiveTargetStates(const Arabica::DOM::Element& transition); void addDescendantStatesToEnter(const Arabica::DOM::Element& state, Arabica::XPath::NodeSet& statesToEnter, Arabica::XPath::NodeSet& statesForDefaultEntry, std::map >& defaultHistoryContent); void addAncestorStatesToEnter(const Arabica::DOM::Element& state, const Arabica::DOM::Element& ancestor, Arabica::XPath::NodeSet& statesToEnter, Arabica::XPath::NodeSet& statesForDefaultEntry, std::map >& defaultHistoryContent); virtual void handleDOMEvent(Arabica::DOM::Events::Event& event); private: std::map, Arabica::XPath::NodeSet > _exitSet; }; } #endif /* end of include guard: INTERPRETERRC_H_WLJEI019 */