SOLA
Loading...
Searching...
No Matches
daisi
src
cpps
logical
message
material_flow_update.h
1
// Copyright 2023 The SOLA authors
2
//
3
// This file is part of DAISI.
4
//
5
// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU
6
// General Public License as published by the Free Software Foundation; version 2.
7
//
8
// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10
// Public License for more details.
11
//
12
// You should have received a copy of the GNU General Public License along with DAISI. If not, see
13
// <https://www.gnu.org/licenses/>.
14
//
15
// SPDX-License-Identifier: GPL-2.0-only
16
17
#ifndef DAISI_CPPS_LOGICAL_MESSAGE_MATERIAL_FLOW_UPDATE_H_
18
#define DAISI_CPPS_LOGICAL_MESSAGE_MATERIAL_FLOW_UPDATE_H_
19
20
#include <cstdint>
21
#include <string>
22
23
#include "cpps/model/order_states.h"
24
#include "material_flow/model/task.h"
25
#include "solanet/serializer/serialize.h"
26
#include "utils/structure_helpers.h"
27
28
namespace
daisi::cpps::logical
{
29
30
struct
MaterialFlowUpdate
{
31
std::string amr_uuid;
32
OrderStates order_state;
33
material_flow::Task
task;
34
uint8_t order_index = 0;
35
util::Position position;
36
37
SERIALIZE(amr_uuid, order_state, task, order_index, position);
38
};
39
}
// namespace daisi::cpps::logical
40
41
#endif
daisi::material_flow::Task
Definition
task.h:34
daisi::cpps::logical
Modified Round Robin Algorithm that centrally assigns tasks of incoming material flows to the corresp...
Definition
algorithm_config.h:22
daisi::cpps::logical::MaterialFlowUpdate
Definition
material_flow_update.h:30
Generated by
1.9.8