-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(daisi): Use separate ns-3 applications per application for CPPS
Related to #105
- Loading branch information
Showing
10 changed files
with
298 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2023 The SOLA authors | ||
// | ||
// This file is part of DAISI. | ||
// | ||
// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
// General Public License as published by the Free Software Foundation; version 2. | ||
// | ||
// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | ||
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
// Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with DAISI. If not, see | ||
// <https://www.gnu.org/licenses/>. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include "amr_logical_agent_application.h" | ||
|
||
namespace daisi::cpps { | ||
ns3::TypeId AmrLogicalAgentApplication::GetTypeId() { | ||
static ns3::TypeId tid = ns3::TypeId("AmrLogicalAgentApplication") | ||
.SetParent<Application>() | ||
.AddConstructor<AmrLogicalAgentApplication>(); | ||
return tid; | ||
} | ||
} // namespace daisi::cpps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright 2023 The SOLA authors | ||
// | ||
// This file is part of DAISI. | ||
// | ||
// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
// General Public License as published by the Free Software Foundation; version 2. | ||
// | ||
// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | ||
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
// Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with DAISI. If not, see | ||
// <https://www.gnu.org/licenses/>. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#ifndef DAISI_CPPS_COMMON_AMR_LOGICAL_AGENT_APPLICATION_H_ | ||
#define DAISI_CPPS_COMMON_AMR_LOGICAL_AGENT_APPLICATION_H_ | ||
|
||
#include <memory> | ||
|
||
#include "cpps/logical/amr/amr_logical_agent.h" | ||
#include "ns3/application.h" | ||
|
||
namespace daisi::cpps { | ||
|
||
/// Wrapper to run an AMR Logical Agent as a ns3::Application | ||
struct AmrLogicalAgentApplication final : public ns3::Application { | ||
static ns3::TypeId GetTypeId(); | ||
|
||
std::unique_ptr<logical::AmrLogicalAgent> application; | ||
}; | ||
|
||
} // namespace daisi::cpps | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2023 The SOLA authors | ||
// | ||
// This file is part of DAISI. | ||
// | ||
// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
// General Public License as published by the Free Software Foundation; version 2. | ||
// | ||
// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | ||
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
// Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with DAISI. If not, see | ||
// <https://www.gnu.org/licenses/>. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include "amr_physical_asset_application.h" | ||
|
||
namespace daisi::cpps { | ||
ns3::TypeId AmrPhysicalAssetApplication::GetTypeId() { | ||
static ns3::TypeId tid = ns3::TypeId("AmrPhysicalAssetApplication") | ||
.SetParent<Application>() | ||
.AddConstructor<AmrPhysicalAssetApplication>(); | ||
return tid; | ||
} | ||
} // namespace daisi::cpps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright 2023 The SOLA authors | ||
// | ||
// This file is part of DAISI. | ||
// | ||
// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU | ||
// General Public License as published by the Free Software Foundation; version 2. | ||
// | ||
// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even | ||
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
// Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License along with DAISI. If not, see | ||
// <https://www.gnu.org/licenses/>. | ||
// | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#ifndef DAISI_CPPS_COMMON_AMR_PHYSICAL_ASSET_APPLICATION_H_ | ||
#define DAISI_CPPS_COMMON_AMR_PHYSICAL_ASSET_APPLICATION_H_ | ||
|
||
#include <memory> | ||
|
||
#include "cpps/amr/physical/amr_physical_asset.h" | ||
#include "ns3/application.h" | ||
|
||
namespace daisi::cpps { | ||
|
||
/// Wrapper to run an AMR Physical Asset as a ns3::Application | ||
struct AmrPhysicalAssetApplication final : public ns3::Application { | ||
static ns3::TypeId GetTypeId(); | ||
|
||
std::unique_ptr<AmrPhysicalAsset> application; | ||
}; | ||
|
||
} // namespace daisi::cpps | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.