23 #ifndef KDSME_RUNTIMECONTROLLER_H
24 #define KDSME_RUNTIMECONTROLLER_H
26 #include "kdsme_core_export.h"
40 Q_PROPERTY(QSet<KDSME::State*> activeConfiguration READ activeConfiguration NOTIFY activeConfigurationChanged)
41 Q_PROPERTY(
KDSME::Transition* lastTransition READ lastTransition NOTIFY lastTransitionChanged)
42 Q_PROPERTY(
bool isRunning READ isRunning NOTIFY isRunningChanged)
43 Q_PROPERTY(QRectF activeRegion READ activeRegion NOTIFY activeRegionChanged)
46 typedef QSet<State*> Configuration;
51 Configuration activeConfiguration()
const;
52 QList<Configuration> lastConfigurations()
const;
53 void setActiveConfiguration(
const Configuration& configuration);
55 QList<Transition*> lastTransitions()
const;
57 void setLastTransition(
Transition* transition);
59 bool isRunning()
const;
60 void setIsRunning(
bool isRunning);
62 Q_INVOKABLE
float activenessForState(
KDSME::State* state)
const;
65 int historySize()
const;
66 void setHistorySize(
int size);
68 QRectF activeRegion()
const;
73 void activeConfigurationChanged(
const QSet<State*>& configuration);
74 void lastTransitionChanged(
Transition* transition);
75 void isRunningChanged(
bool isRunning);
76 void activeRegionChanged(
const QRectF& region);
80 QScopedPointer<Private> d;
Definition: transition.h:30
Definition: runtimecontroller.h:37
Definition: abstractexporter.h:33