#include <automataCreator.h>
Public Types | |
typedef QList< QSharedPointer < StateImpl > > | TStateList |
typedef QMap< QString, QSharedPointer< StateImpl > > | TStateMap |
Public Member Functions | |
StateImpl (const QString &name, const QString &label, bool initial, bool final, State *graphicsState=NULL) | |
~StateImpl () | |
void | addTransition (const QSharedPointer< TransitionImpl > &tr) |
void | addTransitionTo (const QSharedPointer< TransitionImpl > &tr) |
State * | getGraphicsState () const |
TransitionImpl::TTransitionList | getPrivateTransitions () const |
TransitionImpl::TTransitionList | getPrivateTransitionsTo () const |
IState::TIStateNameSet | getStatesAndPathsOn (const QString &character, QList< QPainterPath > &paths) const |
void | removeTransition (const QSharedPointer< TransitionImpl > &tr) |
void | removeTransitionTo (const QSharedPointer< TransitionImpl > &tr) |
IState implementation | |
implements IState interface | |
void | setName (const QString &name) |
Name has to be unique and VauCanSon-G compatible!! | |
QString | getName () const |
void | setLabel (const QString &label) |
Labels can be used multiple times for multiple states. | |
QString | getLabel () const |
void | setInitial (bool is=true) |
void | setFinal (bool is=true) |
bool | isInitial () const |
bool | isFinal () const |
IState::TIStateNameSet | getStatesOn (const QString &character) const |
IState::TIStateNameList | getAdjacentStates () const |
Useful for graph algorithms. | |
ITransition::TITransitionList | getTransitions () const |
Returns transitions leading from state. | |
ITransition::TITransitionList | getTransitionsTo () const |
Returns transitions leading to state. | |
Protected Attributes | |
bool | m_final |
State * | m_graphicsState |
bool | m_initial |
QString | m_label |
QString | m_name |
TransitionImpl::TTransitionList | m_transitions |
TransitionImpl::TTransitionList | m_transitionsTo |
Definition at line 68 of file automataCreator.h.
typedef QList<QSharedPointer<StateImpl> > StateImpl::TStateList |
Definition at line 74 of file automataCreator.h.
typedef QMap<QString, QSharedPointer<StateImpl> > StateImpl::TStateMap |
Definition at line 75 of file automataCreator.h.
StateImpl::StateImpl | ( | const QString & | name, | |
const QString & | label, | |||
bool | initial, | |||
bool | final, | |||
State * | graphicsState = NULL | |||
) |
Definition at line 317 of file automataCreator.cpp.
StateImpl::~StateImpl | ( | ) |
Definition at line 322 of file automataCreator.cpp.
References DBGLOG_AC, DBGPAR, and getName().
void StateImpl::addTransition | ( | const QSharedPointer< TransitionImpl > & | tr | ) |
Definition at line 423 of file automataCreator.cpp.
References getName(), m_transitions, and RELLOG.
void StateImpl::addTransitionTo | ( | const QSharedPointer< TransitionImpl > & | tr | ) |
Definition at line 436 of file automataCreator.cpp.
References getName(), m_transitionsTo, and RELLOG.
IState::TIStateNameList StateImpl::getAdjacentStates | ( | ) | const [virtual] |
Useful for graph algorithms.
Implements IState.
Definition at line 392 of file automataCreator.cpp.
References m_transitions.
State * StateImpl::getGraphicsState | ( | ) | const |
Definition at line 469 of file automataCreator.cpp.
References m_graphicsState.
QString StateImpl::getLabel | ( | ) | const [virtual] |
QString StateImpl::getName | ( | ) | const [virtual] |
Implements IState.
Definition at line 342 of file automataCreator.cpp.
References m_name.
Referenced by addTransition(), addTransitionTo(), and ~StateImpl().
TransitionImpl::TTransitionList StateImpl::getPrivateTransitions | ( | ) | const |
Definition at line 413 of file automataCreator.cpp.
References m_transitions.
TransitionImpl::TTransitionList StateImpl::getPrivateTransitionsTo | ( | ) | const |
Definition at line 418 of file automataCreator.cpp.
References m_transitionsTo.
IState::TIStateNameSet StateImpl::getStatesAndPathsOn | ( | const QString & | character, | |
QList< QPainterPath > & | paths | |||
) | const |
Definition at line 475 of file automataCreator.cpp.
References Transition::path().
IState::TIStateNameSet StateImpl::getStatesOn | ( | const QString & | character | ) | const [virtual] |
ITransition::TITransitionList StateImpl::getTransitions | ( | ) | const [virtual] |
Returns transitions leading from state.
Implements IState.
Definition at line 403 of file automataCreator.cpp.
References m_transitions.
Referenced by setName().
ITransition::TITransitionList StateImpl::getTransitionsTo | ( | ) | const [virtual] |
Returns transitions leading to state.
Implements IState.
Definition at line 408 of file automataCreator.cpp.
References m_transitionsTo.
Referenced by setName().
bool StateImpl::isFinal | ( | ) | const [virtual] |
bool StateImpl::isInitial | ( | ) | const [virtual] |
void StateImpl::removeTransition | ( | const QSharedPointer< TransitionImpl > & | tr | ) |
Definition at line 449 of file automataCreator.cpp.
References m_name, and m_transitions.
void StateImpl::removeTransitionTo | ( | const QSharedPointer< TransitionImpl > & | tr | ) |
Definition at line 459 of file automataCreator.cpp.
References m_name, and m_transitionsTo.
void StateImpl::setFinal | ( | bool | is = true |
) | [virtual] |
void StateImpl::setInitial | ( | bool | is = true |
) | [virtual] |
void StateImpl::setLabel | ( | const QString & | label | ) | [virtual] |
Labels can be used multiple times for multiple states.
Implements IState.
Definition at line 347 of file automataCreator.cpp.
References m_label.
void StateImpl::setName | ( | const QString & | name | ) | [virtual] |
Name has to be unique and VauCanSon-G compatible!!
Implements IState.
Definition at line 327 of file automataCreator.cpp.
References getTransitions(), getTransitionsTo(), and m_name.
bool StateImpl::m_final [protected] |
Definition at line 120 of file automataCreator.h.
Referenced by isFinal(), and setFinal().
State* StateImpl::m_graphicsState [protected] |
Definition at line 125 of file automataCreator.h.
Referenced by getGraphicsState().
bool StateImpl::m_initial [protected] |
Definition at line 119 of file automataCreator.h.
Referenced by isInitial(), and setInitial().
QString StateImpl::m_label [protected] |
Definition at line 118 of file automataCreator.h.
Referenced by getLabel(), and setLabel().
QString StateImpl::m_name [protected] |
Definition at line 117 of file automataCreator.h.
Referenced by getName(), removeTransition(), removeTransitionTo(), and setName().
Definition at line 122 of file automataCreator.h.
Referenced by addTransition(), getAdjacentStates(), getPrivateTransitions(), getStatesOn(), getTransitions(), and removeTransition().
Definition at line 123 of file automataCreator.h.
Referenced by addTransitionTo(), getPrivateTransitionsTo(), getTransitionsTo(), and removeTransitionTo().