SOLA
Loading...
Searching...
No Matches
agv_queue.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_PATH_PLANNING_AGV_QUEUE_H_
18#define DAISI_PATH_PLANNING_AGV_QUEUE_H_
19
20#include <queue>
21
22#include "ns3/vector.h"
23
24namespace daisi::path_planning {
25
27class AGVQueue {
28public:
29 AGVQueue() = default;
30
35 [[nodiscard]] std::string next();
36
41 void add(const std::string &agv_id);
42
43 [[nodiscard]] bool hasAGV() const;
44
45 [[nodiscard]] size_t numberAGV() const;
46
47private:
48 std::queue<std::string> queue_occupancy_;
49};
50} // namespace daisi::path_planning
51
52#endif // DAISI_PATH_PLANNING_AGV_QUEUE_H_
Single-point parking queue with unlimited space.
Definition agv_queue.h:27
void add(const std::string &agv_id)
Definition agv_queue.cpp:27
std::string next()
Definition agv_queue.cpp:21