#include <CallFunction.hpp>
Public Member Functions | |
CallFunction (base::ActionInterface *init_com, boost::shared_ptr< ProgramInterface > foo, ExecutionEngine *p, ExecutionEngine *caller) | |
base::ActionInterface * | clone () const |
base::ActionInterface * | copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &alreadyCloned) const |
virtual void | dispose () |
virtual bool | execute () |
virtual void | executeAndDispose () |
virtual void | readArguments () |
virtual void | reset () |
virtual bool | valid () const |
~CallFunction () | |
Public Member Functions inherited from RTT::base::ActionInterface | |
virtual ActionInterface * | copy (std::map< const DataSourceBase *, DataSourceBase * > &alreadyCloned) const |
virtual | ~ActionInterface () |
Public Member Functions inherited from RTT::base::DisposableInterface | |
virtual | ~DisposableInterface () |
Private Member Functions | |
bool | checkIfDone () |
bool | checkIfDoneOrYielded () |
Private Attributes | |
boost::shared_ptr< ProgramInterface > | _foo |
bool | maccept |
ExecutionEngine * | mcaller |
base::ActionInterface * | minit |
ExecutionEngine * | mrunner |
Additional Inherited Members | |
Public Types inherited from RTT::base::ActionInterface | |
typedef boost::shared_ptr< ActionInterface > | shared_ptr |
Public Types inherited from RTT::base::DisposableInterface | |
typedef boost::shared_ptr< DisposableInterface > | shared_ptr |
An action which calls a FunctionFraph for execution in a ExecutionEngine. Script functions are always executed in the thread of the component.
Definition at line 61 of file CallFunction.hpp.
|
inline |
Create a Command to send a function to a ExecutionEngine.
init_com | The command to execute before sending the function into the processor, in order to initialise it. |
foo | The function to run in the processor. |
p | The target processor which will run the function. |
Definition at line 102 of file CallFunction.hpp.
|
inline |
Definition at line 112 of file CallFunction.hpp.
|
inlineprivate |
Check if the function either finished successfully or encountered an error. Use this as a predicate to wait for full completion.
false | if the function encountered an error |
Definition at line 84 of file CallFunction.hpp.
|
inlineprivate |
Check if the function either finished successfully or encountered an error or yielded. Use this as a predicate to wait for partial completion.
Definition at line 75 of file CallFunction.hpp.
|
inlinevirtual |
The Clone Software Pattern.
Implements RTT::base::ActionInterface.
Definition at line 240 of file CallFunction.hpp.
|
inline |
Definition at line 245 of file CallFunction.hpp.
|
inlinevirtual |
Just free this object without executing it.
Implements RTT::base::DisposableInterface.
Definition at line 225 of file CallFunction.hpp.
|
inlinevirtual |
Enqueue the function in the target engine (mrunner) and wait until it is finished or in error state.
As a first attempt the function is enqueued in the process queue of the engine (
()
Implements RTT::base::ActionInterface.
Definition at line 131 of file CallFunction.hpp.
|
inlinevirtual |
Message callback that executes the function until it finishes or yields.
Will be processed in the mrunner engine. If necessary, enqueue the function in the function queue for later synchronous execution if it did not finish after a single call (
()
Implements RTT::base::DisposableInterface.
Definition at line 214 of file CallFunction.hpp.
|
inlinevirtual |
This is invoked some time before execute() at a time when the action may read its function arguments.
Implements RTT::base::ActionInterface.
Definition at line 235 of file CallFunction.hpp.
|
inlinevirtual |
Reset this action. Must be used after execute() failed.
Reimplemented from RTT::base::ActionInterface.
Definition at line 227 of file CallFunction.hpp.
|
inlinevirtual |
Inspect if this action was executed and valid. This method may not be called before execute(). The default implementation returns always true, i.e. after execute(), it was executed. Override this method if it has more complex state semantics.
Reimplemented from RTT::base::ActionInterface.
Definition at line 231 of file CallFunction.hpp.
|
private |
Definition at line 67 of file CallFunction.hpp.
|
private |
Definition at line 68 of file CallFunction.hpp.
|
private |
Definition at line 66 of file CallFunction.hpp.
|
private |
Definition at line 64 of file CallFunction.hpp.
|
private |
Definition at line 65 of file CallFunction.hpp.