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

Public Member Functions

 SimpleTaskManagement (const AmrDescription &amr_description, const Topology &topology, const daisi::util::Pose &pose)
 
Metrics getFinalMetrics () const
 return the metrics of the final order contained in the last task that has been added to the management
 
daisi::util::Position getExpectedEndPosition () const
 return the end position after executing the final task in the queue
 
bool hasTasks () const override
 check wether the task management has a current task assigned
 
daisi::material_flow::Task getCurrentTask () const override
 get the current task
 
bool setNextTask () override
 replace the current task with the first task stored in the management's queue
 
bool canAddTask (const daisi::material_flow::Task &task) override
 check wether a new task can be added to the management's queue
 
bool addTask (const daisi::material_flow::Task &task) override
 insert a task into the management's queue. Update the current metrics and end location.
 
void setCurrentTime (const daisi::util::Duration &now)
 
- Public Member Functions inherited from daisi::cpps::logical::TaskManagement
 TaskManagement (AmrDescription amr_description, Topology topology, const daisi::util::Pose &pose)
 
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()

bool daisi::cpps::logical::SimpleTaskManagement::addTask ( const daisi::material_flow::Task task)
overridevirtual

insert a task into the management's queue. Update the current metrics and end location.

Returns
true if the insertion was successful, false otherwise

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

◆ canAddTask()

bool daisi::cpps::logical::SimpleTaskManagement::canAddTask ( const daisi::material_flow::Task task)
overridevirtual

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

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

◆ getCurrentTask()

Task daisi::cpps::logical::SimpleTaskManagement::getCurrentTask ( ) const
overridevirtual

get the current task

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

◆ hasTasks()

bool daisi::cpps::logical::SimpleTaskManagement::hasTasks ( ) const
overridevirtual

check wether the task management has a current task assigned

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

◆ setNextTask()

bool daisi::cpps::logical::SimpleTaskManagement::setNextTask ( )
overridevirtual

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

Returns
true if the new assignment of current task was successful, false if there were no more tasks in the management's queue

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


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