The MAUVE Toolchain
mauve::runtime::Deployer< ARCHI > Class Template Referencefinal

Deployer class deploying a specific architecture. More...

#include <Deployer.hpp>

Inheritance diagram for mauve::runtime::Deployer< ARCHI >:
Collaboration diagram for mauve::runtime::Deployer< ARCHI >:

Public Member Functions

ARCHI & architecture () const
 Get the deployer architecture. More...
 
Architectureget_architecture () override
 Get the deployer architecture. More...
 
std::vector< std::string > manager_actions () const override
 Get the list of Manager actions. More...
 
bool manager_apply (std::string name) override
 Apply a Manager action. More...
 
- Public Member Functions inherited from mauve::runtime::AbstractDeployer
virtual ~AbstractDeployer () noexcept
 Destructor. More...
 
bool activate ()
 Activate all tasks. More...
 
bool activate (AbstractComponent *component)
 Activate one task. More...
 
bool activate (std::string name)
 Activate one task. More...
 
bool clear_task (AbstractComponent *component)
 Clear component task.
 
void clear_tasks ()
 Clear the tasks. More...
 
bool create_task (AbstractComponent *component)
 Create one task. More...
 
bool create_tasks ()
 Create all tasks. More...
 
Taskget_task (AbstractComponent *component)
 Get the task associated to a component. More...
 
time_ns_t get_time () const
 Get deployer reference time. More...
 
DeployerLoggerlogger ()
 Access to deployer logger.
 
void loop ()
 Loop.
 
time_ns_t now () const
 Get current deployer time. More...
 
bool start ()
 Start all tasks. More...
 
bool start (AbstractComponent *component, time_ns_t start_time)
 Start a task. More...
 
bool start (std::string name, time_ns_t start_time)
 Start a task. More...
 
bool start_deployer ()
 Start only the Deployer. More...
 
void stop ()
 Stop all.
 
bool stop (AbstractComponent *component)
 Stop task.
 
bool stop (std::string name)
 Stop task by name.
 

Friends

template<typename A >
AbstractDeployermk_abstract_deployer (A *a, Manager< A > *m)
 
template<typename A >
Deployer< A > * mk_deployer (A *a, Manager< A > *m)
 

Additional Inherited Members

- Static Public Member Functions inherited from mauve::runtime::AbstractDeployer
static AbstractDeployerinstance ()
 Get the Deployer instance. More...
 
- Protected Member Functions inherited from mauve::runtime::AbstractDeployer
 AbstractDeployer ()
 Constructor. More...
 
- Protected Attributes inherited from mauve::runtime::AbstractDeployer
DeployerLogger_logger
 The Deployer logger. More...
 
- Static Protected Attributes inherited from mauve::runtime::AbstractDeployer
static AbstractDeployerdeployer
 The singleton Deployer instance. More...
 

Detailed Description

template<typename ARCHI>
class mauve::runtime::Deployer< ARCHI >

Deployer class deploying a specific architecture.

Template Parameters
ARCHIArchitecture type

Member Function Documentation

template<typename ARCHI>
ARCHI& mauve::runtime::Deployer< ARCHI >::architecture ( ) const
inline

Get the deployer architecture.

Returns
a pointer on the deployed architecture
template<typename ARCHI >
Architecture * mauve::runtime::Deployer< ARCHI >::get_architecture ( )
overridevirtual

Get the deployer architecture.

Returns
a pointer on the deployed architecture

Implements mauve::runtime::AbstractDeployer.

template<typename ARCHI >
std::vector< std::string > mauve::runtime::Deployer< ARCHI >::manager_actions ( ) const
overridevirtual

Get the list of Manager actions.

Returns
a vector of the registered action names.

Implements mauve::runtime::AbstractDeployer.

template<typename ARCHI >
bool mauve::runtime::Deployer< ARCHI >::manager_apply ( std::string  name)
overridevirtual

Apply a Manager action.

Parameters
namethe name of the action to apply
Returns
true if the action has succeeded.

Implements mauve::runtime::AbstractDeployer.