DynamicRemoteStateClass.cpp
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package ArmarX::
17 * @author Mirko Waechter ( mirko.waechter at kit dot edu)
18 * @date 2014
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22 
24 
26 {
28  {
29  setStateName("DynamicRemoteState");
30 
32  StateParameterPtr proxyName(new StateParameter());
33  proxyName->optional = false;
34  proxyName->type = QString::fromStdString(Variant::typeToString(VariantType::String));
35  input["proxyName"] = proxyName;
37  stateName->optional = false;
38  stateName->type = QString::fromStdString(Variant::typeToString(VariantType::String));
39  input["stateName"] = stateName;
40 
42 
43  EventList events;
45  event->name = "LoadingFailed";
46  event->description = "The connecting to the desired remote state failed";
47  events.push_back(event);
48  this->outgoingTransitions = events;
49  }
50 
52  {
53 
54  }
55 
57  {
58  return eDynamicRemoteState;
59  }
60 }
armarx::statechartmodel::DynamicRemoteStateClass::~DynamicRemoteStateClass
~DynamicRemoteStateClass() override
Definition: DynamicRemoteStateClass.cpp:51
armarx::statechartmodel::EventList
QList< EventPtr > EventList
Definition: XmlWriter.h:47
armarx::statechartmodel::DynamicRemoteStateClass::getType
eStateType getType() const override
Definition: DynamicRemoteStateClass.cpp:56
armarx::statechartmodel::StateParameter
Definition: StateParameter.h:49
armarx::statechartmodel::DynamicRemoteStateClass::DynamicRemoteStateClass
DynamicRemoteStateClass(QString uuid="")
Definition: DynamicRemoteStateClass.cpp:27
armarx::statechartmodel::State::setStateName
void setStateName(const QString &newName)
Definition: State.cpp:103
armarx::statechartmodel::StateParameterMap
QMap< QString, StateParameterPtr > StateParameterMap
Definition: StateParameter.h:46
armarx::statechartmodel
Definition: XmlWriter.h:36
armarx::aron::input
ReaderT::InputType & input
Definition: rw.h:19
armarx::Variant::typeToString
static std::string typeToString(VariantTypeId typeId)
Return the name of the registered type typeId.
Definition: Variant.cpp:732
armarx::statechartmodel::State
Definition: State.h:52
armarx::statechartmodel::StateParameterPtr
std::shared_ptr< StateParameter > StateParameterPtr
Definition: StateParameter.h:45
armarx::statechartmodel::State::outgoingTransitions
EventList outgoingTransitions
Definition: State.h:245
armarx::statechartmodel::State::stateName
QString stateName
Definition: State.h:246
armarx::statechartmodel::EventPtr
std::shared_ptr< Event > EventPtr
Definition: XmlWriter.h:46
armarx::statechartmodel::Event
Definition: Event.h:30
armarx::VariantType::String
const VariantTypeId String
Definition: Variant.h:920
armarx::statechartmodel::State::setInputParameters
void setInputParameters(const StateParameterMap &newInputParameters)
Definition: State.cpp:625
DynamicRemoteStateClass.h