Hormiga 1.0

Step Class Reference

#include <step.h>

Collaboration diagram for Step:

List of all members.

Public Types

enum  state { NotSatisfied, Satisfied, Executing, Accepted }

Public Slots

void notifyStepState (Step *peer, Step::state newState, Step::state oldState)
void run ()
void sleep ()
void wakeUp ()
void showMessage (int severity, T_STRING msg)

Signals

void stateChanged (Step *emisor, Step::state newState, Step::state oldState)
void needInput (Step *emisor, T_CAPTURE_LIST *captures)
void reportOutput (Step *emisor, T_REPORT_LIST *reports)
void message (int severity, T_STRING msg)

Public Member Functions

virtual T_STRING toString () const
T_STRING getName ()
virtual void setStepNeeds (T_STEP_LIST *stepsNeeded)
virtual void setExecutionBlock (Statement *execBlock)
virtual void setCaptures (T_CAPTURE_LIST *captures)
virtual void setReports (T_REPORT_LIST *reports)
virtual void setStepCondition (StepCondition *condition)
 Step (T_STRING name)
 ~Step ()
virtual void changeState (Step::state newState)

Protected Member Functions

virtual bool exec (bool interactive)

Protected Attributes

unsigned int unsatisfiedDependencesCount
Step::state currentState
bool alreadyExecuted
T_STEP_LIST * stepsNeeded
StatementexecBlock
T_CAPTURE_LIST * captures
T_REPORT_LIST * reports
StepConditioncondition
T_STRING name
QMutex execSleep

Detailed Description

Definition at line 90 of file step.h.


Member Enumeration Documentation

Enumerator:
NotSatisfied 
Satisfied 
Executing 
Accepted 

Definition at line 94 of file step.h.


Constructor & Destructor Documentation

Step::Step ( T_STRING  name)

Definition at line 49 of file step.cpp.

Step::~Step ( )

Definition at line 68 of file step.cpp.


Member Function Documentation

void Step::changeState ( Step::state  newState) [virtual]

Definition at line 173 of file step.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool Step::exec ( bool  interactive) [protected, virtual]

This method executes the 'execution block'. If the interactive parameter is 'true' the Step will emit the signals 'needInput' and 'reportOutput', else those signal will no be emited.

Parameters:
interactiveemit or not the signals 'needInput' and 'reportOutput'
Returns:
always returns true.

Definition at line 93 of file step.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

T_STRING Step::getName ( )

Definition at line 83 of file step.cpp.

Here is the caller graph for this function:

void Step::message ( int  severity,
T_STRING  msg 
) [signal]

Here is the caller graph for this function:

void Step::needInput ( Step emisor,
T_CAPTURE_LIST *  captures 
) [signal]

Here is the caller graph for this function:

void Step::notifyStepState ( Step peer,
Step::state  newState,
Step::state  oldState 
) [slot]

Definition at line 184 of file step.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Step::reportOutput ( Step emisor,
T_REPORT_LIST *  reports 
) [signal]

Here is the caller graph for this function:

void Step::run ( ) [slot]

Definition at line 88 of file step.cpp.

Here is the call graph for this function:

void Step::setCaptures ( T_CAPTURE_LIST *  captures) [virtual]

Definition at line 158 of file step.cpp.

void Step::setExecutionBlock ( Statement execBlock) [virtual]

Definition at line 153 of file step.cpp.

void Step::setReports ( T_REPORT_LIST *  reports) [virtual]

Definition at line 163 of file step.cpp.

void Step::setStepCondition ( StepCondition condition) [virtual]

Definition at line 168 of file step.cpp.

void Step::setStepNeeds ( T_STEP_LIST *  stepsNeeded) [virtual]

Definition at line 134 of file step.cpp.

Here is the call graph for this function:

void Step::showMessage ( int  severity,
T_STRING  msg 
) [inline, slot]

See CoreInterface::notifyMessage()

Definition at line 114 of file step.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void Step::sleep ( ) [inline, slot]

Definition at line 110 of file step.h.

Here is the caller graph for this function:

void Step::stateChanged ( Step emisor,
Step::state  newState,
Step::state  oldState 
) [signal]

Here is the caller graph for this function:

T_STRING Step::toString ( ) const [virtual]

Definition at line 78 of file step.cpp.

void Step::wakeUp ( ) [inline, slot]

Definition at line 111 of file step.h.

Here is the caller graph for this function:


Member Data Documentation

bool Step::alreadyExecuted [protected]

Definition at line 133 of file step.h.

T_CAPTURE_LIST* Step::captures [protected]

Definition at line 136 of file step.h.

Definition at line 138 of file step.h.

Definition at line 132 of file step.h.

Statement* Step::execBlock [protected]

Definition at line 135 of file step.h.

QMutex Step::execSleep [protected]

Definition at line 140 of file step.h.

T_STRING Step::name [protected]

Definition at line 139 of file step.h.

T_REPORT_LIST* Step::reports [protected]

Definition at line 137 of file step.h.

T_STEP_LIST* Step::stepsNeeded [protected]

Definition at line 134 of file step.h.

unsigned int Step::unsatisfiedDependencesCount [protected]

Definition at line 131 of file step.h.


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