17#ifndef DAISI_CPPS_LOGICAL_TASK_MANAGEMENT_SIMPLE_TASK_MANAGEMENT_H_
18#define DAISI_CPPS_LOGICAL_TASK_MANAGEMENT_SIMPLE_TASK_MANAGEMENT_H_
20#include "cpps/amr/amr_mobility_helper.h"
21#include "cpps/amr/physical/material_flow_functionality_mapping.h"
22#include "task_management.h"
57 void setCurrentTime(
const daisi::util::Duration &now);
63 void updateFinalMetrics();
71 void insertOrderPropertiesIntoMetrics(
const daisi::material_flow::Order &order,
Metrics &metrics,
73 const daisi::util::Duration &start_time)
const;
76 std::optional<daisi::material_flow::Task> active_task_;
79 std::vector<daisi::material_flow::Task> queue_;
85 std::optional<daisi::util::Position> expected_end_position_;
88 daisi::util::Duration time_now_ = 0;
Definition amr_description.h:27
Definition amr_topology.h:26
Definition simple_task_management.h:25
bool hasTasks() const override
check wether the task management has a current task assigned
Definition simple_task_management.cpp:44
Metrics getFinalMetrics() const
return the metrics of the final order contained in the last task that has been added to the managemen...
Definition simple_task_management.cpp:28
bool canAddTask(const daisi::material_flow::Task &task) override
check wether a new task can be added to the management's queue
Definition simple_task_management.cpp:63
daisi::util::Position getExpectedEndPosition() const
return the end position after executing the final task in the queue
Definition simple_task_management.cpp:30
bool setNextTask() override
replace the current task with the first task stored in the management's queue
Definition simple_task_management.cpp:53
bool addTask(const daisi::material_flow::Task &task) override
insert a task into the management's queue. Update the current metrics and end location.
Definition simple_task_management.cpp:70
daisi::material_flow::Task getCurrentTask() const override
get the current task
Definition simple_task_management.cpp:46
Definition task_management.h:35
Modified Round Robin Algorithm that centrally assigns tasks of incoming material flows to the corresp...
Definition algorithm_config.h:22
Definition structure_helpers.h:64