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

Classes

struct  InsertionPoint
 

Public Member Functions

 AuctionBasedTaskManagement (const AmrDescription &amr_description, const Topology &topology, const daisi::util::Pose &pose)
 
virtual bool addTask (const daisi::material_flow::Task &task, std::shared_ptr< InsertionPoint > insertion_point=nullptr)=0
 
bool addTask (const daisi::material_flow::Task &task) final
 insert a task into the management's queue.
 
virtual bool canAddTask (const daisi::material_flow::Task &task, std::shared_ptr< InsertionPoint > insertion_point=nullptr)=0
 
bool canAddTask (const daisi::material_flow::Task &task) final
 check wether a new task can be added to the management's queue
 
virtual std::pair< MetricsComposition, std::shared_ptr< InsertionPoint > > getLatestCalculatedInsertionInfo () const =0
 
- Public Member Functions inherited from daisi::cpps::logical::TaskManagement
 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
 
void addNotifyTaskAssignmentCallback (std::function< void(void)> callback)
 
void clearNotifyTaskAssignmentCallback ()
 

Additional Inherited Members

- Protected Attributes inherited from daisi::cpps::logical::TaskManagement
std::vector< std::function< void(void)> > task_assignment_callbacks_
 
AmrDescription amr_description_
 
Topology topology_
 
daisi::util::Pose current_pose_
 

Member Function Documentation

◆ addTask() [1/2]

bool daisi::cpps::logical::AuctionBasedTaskManagement::addTask ( const daisi::material_flow::Task task)
inlinefinalvirtual

insert a task into the management's queue.

Returns
true if the insertion was successful, false otherwise

Implements daisi::cpps::logical::TaskManagement.

◆ addTask() [2/2]

virtual bool daisi::cpps::logical::AuctionBasedTaskManagement::addTask ( const daisi::material_flow::Task task,
std::shared_ptr< InsertionPoint insertion_point = nullptr 
)
pure virtual

◆ canAddTask() [1/2]

bool daisi::cpps::logical::AuctionBasedTaskManagement::canAddTask ( const daisi::material_flow::Task task)
inlinefinalvirtual

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

Implements daisi::cpps::logical::TaskManagement.

◆ canAddTask() [2/2]

virtual bool daisi::cpps::logical::AuctionBasedTaskManagement::canAddTask ( const daisi::material_flow::Task task,
std::shared_ptr< InsertionPoint insertion_point = nullptr 
)
pure virtual

◆ getLatestCalculatedInsertionInfo()

virtual std::pair< MetricsComposition, std::shared_ptr< InsertionPoint > > daisi::cpps::logical::AuctionBasedTaskManagement::getLatestCalculatedInsertionInfo ( ) const
pure virtual

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