SOLA
Loading...
Searching...
No Matches
amr_load_handling_unit.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_AMR_AMR_LOAD_HANDLING_UNIT_H_
18#define DAISI_CPPS_AMR_AMR_LOAD_HANDLING_UNIT_H_
19
20#include <string>
21
22#include "cpps/amr/model/amr_static_ability.h"
23#include "solanet/serializer/serialize.h"
24
25namespace daisi::cpps {
27public:
28 AmrLoadHandlingUnit() = default;
29 AmrLoadHandlingUnit(double load_time_s, double unload_time_s,
30 const amr::AmrStaticAbility &ability)
31 : load_time_s_(load_time_s), unload_time_s_(unload_time_s), ability_(ability) {}
32
35 double getLoadTime() const { return load_time_s_; }
36 double getUnloadTime() const { return unload_time_s_; }
38
39 amr::AmrStaticAbility getAbility() const { return ability_; }
40
41 SERIALIZE(ability_, load_time_s_, unload_time_s_);
42
43private:
44 double load_time_s_ = -1;
45 double unload_time_s_ = -1;
46 amr::AmrStaticAbility ability_;
47};
48} // namespace daisi::cpps
49#endif
Definition amr_load_handling_unit.h:26
double getLoadTime() const
Definition amr_load_handling_unit.h:35
Definition amr_static_ability.h:32