37 std::cout <<
"onInitComponent" << std::endl;
75 ->mapFromParent(
"*",
"*")
76 ->mapFromParent(
"timeout",
"timeout2")
77 ->mapFromParent(
"x",
"x")
78 ->mapFromParent(
"y",
"y")
79 ->mapFromParent(
"ObjectList",
"ObjectList")
80 ->setSourcePriority(3, eOutput)
81 ->setSourcePriority(2, eParent));
void onInitStatechart() override
onInitStatechart this method is called when the statechart is started.
void onConnectStatechart() override
onConnectStatechart is called before armarx::StatechartContext::startStatechart() and after armarx::S...
static IceInternal::Handle< Statechart_StateParameterExample > createInstance(std::string stateName="")
void removeCondition(ConditionIdentifier conditionId)
Utility function to remove an installed condition on the distributed conditionhandler.
EventPtr createEvent()
Utility function to create a new Event.
void sendEvent(const EventPtr event, StateBasePtr eventProcessor=nullptr)
Function to send an event to a specific state from an onEnter()-function. Must not be called anywhere...
void setOutput(std::string const &key, const Variant &value)
setOuput() sets an output parameter of this state.
StateBasePtr addState(StateBasePtr pNewState)
bool addToInput(const std::string &key, const ContainerType &type, bool optional, VariantContainerBasePtr defaultValue=VariantContainerBasePtr())
Adds a key,type-pair to the input parameters.
std::enable_if_t< std::is_base_of_v< VariantDataClass, T >, IceInternal::Handle< T > > getInput(const std::string &key) const
getInput can be used to access a specific input parameter.
StateBasePtr setInitState(StateBasePtr initState, ParameterMappingPtr initialStateMapping=ParameterMappingPtr())
Sets the initial substate of this state.
TransitionIceBase & addTransition(EventPtr event, StateIceBasePtr sourceState, StateIceBasePtr destinationState, ParameterMappingIceBasePtr mappingToNextStatesInput=nullptr, ParameterMappingIceBasePtr mappingToParentStatesLocal=nullptr, ParameterMappingIceBasePtr mappingToParentStatesOutput=nullptr)
bool addToOutput(const std::string &key, VariantTypeId type, bool optional)
Adds a key,type-pair to the output parameters.
bool setToplevelState(const armarx::StatePtr &newToplevelState, StringVariantContainerBaseMap startParameters=StringVariantContainerBaseMap())
setToplevelState initializes newToplevelState with the current StatechartContext and the current Stat...
#define ARMARX_INFO
The normal logging level.
const VariantTypeId String
const VariantTypeId Float
const VariantContainerType List
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< State > StatePtr
const LogSender::manipulator flush
ParameterMappingPtr createMapping()
Returns a new and empty instance of ParameterMapping.
void defineParameters() override
Virtual function, in which input/local/output parameters can be specified.
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
void defineParameters() override
Virtual function, in which input/local/output parameters can be specified.
void onBreak() override
Virtual function, in which the behaviour of state is defined, when it is abnormally exited....
ConditionIdentifier condId
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
void onExit() override
Virtual function, in which the behaviour of state is defined, when it is exited. Can be overridden,...
void defineParameters() override
Virtual function, in which input/local/output parameters can be specified.
void onEnter() override
Virtual function, in which the behaviour of state is defined, when it is entered. Can be overridden,...
void defineState() override
Virtual function, in which this state can be configured.
void defineSubstates() override
Virtual function, in which substates, transition and mappings can be added.