Public Types | Public Member Functions | Protected Attributes

StateImpl Class Reference

#include <automataCreator.h>

Inheritance diagram for StateImpl:
Collaboration diagram for StateImpl:

List of all members.

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)
StategetGraphicsState () 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
Statem_graphicsState
bool m_initial
QString m_label
QString m_name
TransitionImpl::TTransitionList m_transitions
TransitionImpl::TTransitionList m_transitionsTo

Detailed Description

Definition at line 68 of file automataCreator.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

void StateImpl::addTransition ( const QSharedPointer< TransitionImpl > &  tr  ) 

Definition at line 423 of file automataCreator.cpp.

References getName(), m_transitions, and RELLOG.

Here is the call graph for this function:

void StateImpl::addTransitionTo ( const QSharedPointer< TransitionImpl > &  tr  ) 

Definition at line 436 of file automataCreator.cpp.

References getName(), m_transitionsTo, and RELLOG.

Here is the call graph for this function:

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]

Implements IState.

Definition at line 352 of file automataCreator.cpp.

References m_label.

QString StateImpl::getName (  )  const [virtual]

Implements IState.

Definition at line 342 of file automataCreator.cpp.

References m_name.

Referenced by addTransition(), addTransitionTo(), and ~StateImpl().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

IState::TIStateNameSet StateImpl::getStatesOn ( const QString &  character  )  const [virtual]

Implements IState.

Definition at line 377 of file automataCreator.cpp.

References m_transitions.

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

bool StateImpl::isFinal (  )  const [virtual]

Implements IState.

Definition at line 362 of file automataCreator.cpp.

References m_final.

bool StateImpl::isInitial (  )  const [virtual]

Implements IState.

Definition at line 357 of file automataCreator.cpp.

References m_initial.

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]

Implements IState.

Definition at line 372 of file automataCreator.cpp.

References m_final.

void StateImpl::setInitial ( bool  is = true  )  [virtual]

Implements IState.

Definition at line 367 of file automataCreator.cpp.

References m_initial.

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.

Here is the call graph for this function:


Member Data Documentation

bool StateImpl::m_final [protected]

Definition at line 120 of file automataCreator.h.

Referenced by isFinal(), and setFinal().

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().


The documentation for this class was generated from the following files: