Go to the documentation of this file.
39 #include <ArmarXCore/interface/statechart/StatechartIce.h>
45 class DynamicRemoteStateClass;
55 public std::enable_shared_from_this<State>
61 explicit State(
const QString& uuid =
"");
66 void addReferences(
const QMap<QString, armarx::statechartmodel::StatePtr>& uuidStateMap);
129 TransitionPtr findTransition(
const QString& eventName,
const QString& transitionSourceName,
const QString& transitionDestinationName)
const;
186 void setSize(
const QSizeF& newSize);
238 void setDirty(
bool dirty);
270 QPointF calcDetachedTransitionLastControlPoint(
StateInstancePtr instance)
const;
271 QPointF calcDetachedTransitionEndPoint(
StateInstancePtr instance,
const QPointF& lastControlPoint)
const;
StateInstancePtr activeSubstate
std::shared_ptr< DynamicRemoteStateClass > DynamicRemoteStateClassPtr
void stateDeleted()
stateDeleted Signals that the destructor of this state was called.
State(const QString &uuid="")
StateInstancePtr addRemoteSubstate(StatePtr newRemoteSubstate, const QString &remoteStateOffererName, QString instanceName="", const QPointF &pos=QPointF())
QList< QPointF > QPointList
void transitionChanged(statechartmodel::TransitionCPtr transition, statechartmodel::SignalType signalType)
StateInstancePtr replaceSubstate(QString stateInstanceName, StateInstancePtr newInstance)
void bendTransition(TransitionCPtr transition, int u, int v)
void setTransitionMapping(TransitionCPtr transition, const ParameterMappingList &mappingToNextStateInput, const ParameterMappingList &mappingToParentLocal, const ParameterMappingList &mappingToParentOutput)
StateInstancePtr getStartState() const
void setStartState(StateInstancePtr newStartState)
void setSize(const QSizeF &newSize)
void clearActiveSubstates()
void addReferences(const QMap< QString, armarx::statechartmodel::StatePtr > &uuidStateMap)
Annotates the State object created by parseXml() before with references to other states.
StateParameterMap localParameters
std::shared_ptr< Transition > TransitionPtr
std::shared_ptr< float > FloatPtr
const StateParameterMap & getInputParameters() const
StateInstancePtr addEndSubstate(const QString &endstateName, const QString &eventName, const QPointF &pos=QPointF())
QList< EventPtr > EventList
const StateParameterMap & getOutputParameters() const
void addDetachedTransition(const QString &eventName, StateInstancePtr sourceState)
static QString StateTypeToString(eStateType type)
void updateTransitionDestination(TransitionCPtr transition, StateInstancePtr newDest, QPointList newSupportPoints=QPointList())
void updateTransition(const QString &eventName, statechartmodel::StatePtr stateClass, statechartmodel::SignalType signalType)
const EventList & getOutgoingEvents() const
bool removeTransition(TransitionPtr transition)
bool checkTransition(TransitionPtr transition) const
TransitionPtr getTransition(const QString &eventName, StateInstancePtr sourceInstance) const
void setLocalParameters(const StateParameterMap &newLocalParameters)
CTransitionList getTransitions(bool withStartTransition=false) const
TransitionList transitions
const QString & getDescription() const
std::shared_ptr< StateInstance > StateInstancePtr
const StateParameterMap getInputAndLocalParameters() const
std::shared_ptr< QPointF > QPointPtr
bool hasDescendant(statechartmodel::StatePtr state) const
QMap< QString, StateInstancePtr > StateInstanceMap
bool checkSubstate(StatePtr newState) const
StateParameterMap outputParameters
void detachTransitionDestination(TransitionCPtr transition, QPointF floatingEndPoint)
void setStateName(const QString &newName)
void setDescription(const QString &newDescription)
bool renameSubstate(QString oldName, QString newName)
void dirtyStatusChanged(bool newStatus)
void outgoingTransitionChanged(const QString &eventName, statechartmodel::StatePtr stateClass, statechartmodel::SignalType signalType)
QMap< QString, StateParameterPtr > StateParameterMap
QList< StateInstancePtr > getInstances(statechartmodel::StatePtr stateClass) const
bool removeSubstate(StateInstancePtr substate)
StateInstancePtr addDynamicRemoteSubstate(StatePtr state, QString instanceName, const QPointF &pos)
TransitionCPtr getStartTransition() const
const QList< QString > getProxies() const
TransitionPtr findTransition(TransitionCPtr t) const
void setTransitionActivated(TransitionCPtr transition)
void setActiveSubstate(StateInstancePtr newActiveState)
const StateInstanceMap & getSubstates() const
void addTransition(TransitionPtr newTransition)
const StateInstancePtr & getActiveSubstate() const
void setOutputParameters(const StateParameterMap &newOutputParameters)
EventList outgoingTransitions
EventList getAllEvents() const
QList< TransitionCPtr > CTransitionList
virtual eStateType getType() const
QList< TransitionPtr > TransitionList
QString getStateName() const
double v(double t, double v0, double a0, double j)
void setOutgoingEvents(const EventList &outgoingEvents)
void replaceTransitions(TransitionList newTransitionList)
const StateParameterMap & getLocalParameters() const
Base Class for all Logging classes.
StateInstancePtr addSubstate(StateInstancePtr stateInstance)
ParameterMappingList getStartStateInputMapping() const
SignalType
The SignalType enum.
void connectToSubclasses()
std::shared_ptr< const Transition > TransitionCPtr
void setTransitionSupportPoints(statechartmodel::TransitionCPtr transition, const SupportPoints &points, const QPointPtr &labelCenterPosition=QPointPtr(), const FloatPtr &labelFontPointSize=FloatPtr())
QList< ParameterMappingPtr > ParameterMappingList
std::shared_ptr< State > StatePtr
void setEditable(bool editable)
StateParameterMap inputParameters
void addSupportPoint(TransitionCPtr transition, QPointF supportPoint)
void stateChanged(statechartmodel::SignalType signalType)
void setStartStateInputMapping(const ParameterMappingList &newStartStateInputMapping)
void setTransitionUserCodeEnabled(TransitionCPtr transition, bool enabled=true)
void substateChanged(statechartmodel::StateInstancePtr substate, statechartmodel::SignalType signalType)
void replaceSubstates(StateInstanceMap newSubstateList)
void setInputParameters(const StateParameterMap &newInputParameters)
StateInstanceMap substates
void setSubstateAreaSize(const QSizeF &newSize)