Go to the documentation of this file.
26 #include "../model/State.h"
89 bool layoutNow(
size_t mediatorId,
bool layoutAll);
117 QList<MediatorLayoutOptionPair> layoutQueue;
131 QList<statechartmodel::StatePtr> states;
140 bool layoutingDisabled;
std::pair< size_t, bool > MediatorLayoutOptionPair
void potentialStateAdded(statechartmodel::StateInstancePtr substate, statechartmodel::SignalType signalType)
potentialStateAdded If a substate is added it might mean that there is a new state needing a LayoutWo...
LayoutController(armarx::statechartmodel::StatePtr topState, bool startEnabled=true)
void createWorker(MediatorPtr mediator, size_t id, QString name)
createWorker Tells the LayoutWorkerCreator to create a new worker for this mediator.
std::map< size_t, MediatorPtr > MediatorMap
void setTopState(statechartmodel::StatePtr topState)
setTopState Resets all workers i.e.
std::shared_ptr< StateInstance > StateInstancePtr
void startNextLayouting()
startNextLayouting The last worker that layouted is finished and the next should be started.
void reset()
reset Notifies the LayoutWorkerCreator that the topState has been reset.
void createAllWorkers()
createAllWorkers Creates workers for all mediators
void scheduleMediator(size_t mediatorId, bool layoutAll)
scheduleMediator Put the mediator in the layoutQueue.
size_t getStateId(armarx::statechartmodel::StatePtr state) const
bool layoutNow(size_t mediatorId, bool layoutAll)
std::shared_ptr< StateModelLayoutMediator > MediatorPtr
SignalType
The SignalType enum.
std::shared_ptr< State > StatePtr
void deleteMediator(size_t mediatorId)
deleteMediator Call the destructor of mediator and tell LayoutWorkerCreator to delete the correspondi...
This file offers overloads of toIce() and fromIce() functions for STL container types.
void enableLayouting(bool enable=true)