35 StatechartPerfomanceTest::onInitRemoteStateOfferer()
37 addState<Statechart_StatechartPerfomanceTest>(
"PerfTest");
43 std::cout <<
"onInitComponent" << std::endl;
44 StringVariantContainerBaseMap input;
48 input[
"file"] =
new SingleVariant(std::string(
"file://////"));
52 map->addVariant(
"left", 0.3f);
53 list->addElement(map);
54 input[
"sampleList"] = list;
89 ->mapFromParent(
"Timeout",
"Timeout")
90 ->mapFromParent(
"name",
"name")
91 ->mapFromParent(
"file",
"file")
92 ->mapFromParent(
"sampleList");
145 IceUtil::Time dura = IceUtil::Time::now() -
lastCall;
147 <<
" avg Duration in ms: " << dura.toMilliSecondsDouble() /
counter / 2
void setLocalMinimumLoggingLevel(MessageTypeT level)
With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
The SingleTypeVariantList class is a subclass of VariantContainer and is comparable to a std::vector<...
The SingleVariant class is required to store single Variant instances in VariantContainer subclasses.
static IceInternal::Handle< Statechart_StatechartPerfomanceTest > createInstance(std::string stateName="")
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...
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)
TransitionIceBase & addTransitionFromAllStates(StateIceBasePtr destinationState, ParameterMappingIceBasePtr mappingToNextStatesInput=nullptr, ParameterMappingIceBasePtr mappingToParentStatesLocal=nullptr, ParameterMappingIceBasePtr mappingToParentStatesOutput=nullptr)
Function to add a new transition from all substates to destinationState.
bool setToplevelState(const armarx::StatePtr &newToplevelState, StringVariantContainerBaseMap startParameters=StringVariantContainerBaseMap())
setToplevelState initializes newToplevelState with the current StatechartContext and the current Stat...
The StringValueMap class is a subclass of VariantContainer and is comparable to a std::map<std::strin...
static ThreadListPtr getApplicationThreadList()
getApplicationThreadList retrieves the ThreadList, that contains all TimerTasks and PeriodicTasks in ...
#define ARMARX_INFO
The normal logging level.
#define ARMARX_ERROR
The logging level for unexpected behaviour, that must be fixed.
#define ARMARX_VERBOSE
The logging level for verbose information.
const VariantTypeId String
const VariantContainerType Map
const VariantTypeId Float
const VariantContainerType List
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< SingleTypeVariantList > SingleTypeVariantListPtr
IceInternal::Handle< State > StatePtr
ParameterMappingPtr PMPtr
IceInternal::Handle< StringValueMap > StringValueMapPtr
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 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 defineSubstates() override
Virtual function, in which substates, transition and mappings can be added.