SOLA
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
daisi::cpps::logical::TaskManagement Class Referenceabstract
Inheritance diagram for daisi::cpps::logical::TaskManagement:
daisi::cpps::logical::AuctionBasedTaskManagement daisi::cpps::logical::SimpleTaskManagement daisi::cpps::logical::StnTaskManagement

Public Member Functions

 TaskManagement (AmrDescription amr_description, Topology topology, const daisi::util::Pose &pose)
 
virtual bool hasTasks () const =0
 check wether the task management has a current task assigned
 
virtual daisi::material_flow::Task getCurrentTask () const =0
 get the current task
 
virtual bool setNextTask ()=0
 replace the current task with the first task stored in the management's queue
 
virtual bool canAddTask (const daisi::material_flow::Task &task)=0
 check wether a new task can be added to the management's queue
 
virtual bool addTask (const daisi::material_flow::Task &task)=0
 insert a task into the management's queue.
 
void addNotifyTaskAssignmentCallback (std::function< void(void)> callback)
 
void clearNotifyTaskAssignmentCallback ()
 

Protected Attributes

std::vector< std::function< void(void)> > task_assignment_callbacks_
 
AmrDescription amr_description_
 
Topology topology_
 
daisi::util::Pose current_pose_
 

Member Function Documentation

◆ addTask()

virtual bool daisi::cpps::logical::TaskManagement::addTask ( const daisi::material_flow::Task task)
pure virtual

insert a task into the management's queue.

Returns
true if the insertion was successful, false otherwise

Implemented in daisi::cpps::logical::AuctionBasedTaskManagement, and daisi::cpps::logical::SimpleTaskManagement.

◆ canAddTask()

virtual bool daisi::cpps::logical::TaskManagement::canAddTask ( const daisi::material_flow::Task task)
pure virtual

check wether a new task can be added to the management's queue

Implemented in daisi::cpps::logical::AuctionBasedTaskManagement, and daisi::cpps::logical::SimpleTaskManagement.

◆ getCurrentTask()

virtual daisi::material_flow::Task daisi::cpps::logical::TaskManagement::getCurrentTask ( ) const
pure virtual

◆ hasTasks()

virtual bool daisi::cpps::logical::TaskManagement::hasTasks ( ) const
pure virtual

check wether the task management has a current task assigned

Implemented in daisi::cpps::logical::SimpleTaskManagement, and daisi::cpps::logical::StnTaskManagement.

◆ setNextTask()

virtual bool daisi::cpps::logical::TaskManagement::setNextTask ( )
pure virtual

replace the current task with the first task stored in the management's queue

Implemented in daisi::cpps::logical::SimpleTaskManagement, and daisi::cpps::logical::StnTaskManagement.


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