Go to the documentation of this file.00001 #ifndef _ITRANSITION_H_414798923403_
00002 #define _ITRANSITION_H_414798923403_
00003
00004 #include <QSet>
00005 #include <QChar>
00006
00007 #include <QSharedPointer>
00008
00009
00010
00011
00012 class ITransition
00013 {
00014 public:
00015
00016 typedef QSet<QString> TCharSet;
00017 typedef QSet<QSharedPointer<ITransition> > TITransitionSet;
00018 typedef QList<QSharedPointer<ITransition> > TITransitionList;
00019
00020 virtual ~ITransition() {}
00021
00022 virtual void setSourceState(const QString &stateName) = 0;
00023 virtual void setDestinationState(const QString &stateName) = 0;
00024
00025 virtual QString getSourceState() const = 0;
00026 virtual QString getDestinationState() const = 0;
00027
00028 virtual bool passOn(const QString &character) const = 0;
00029
00030
00031 virtual TCharSet getCharacters() const = 0;
00032 };
00033
00034 #endif //_ITRANSITION_H_414798923403_