From 6babcbef6bc34129ce3587849ca1c48b92f30942 Mon Sep 17 00:00:00 2001 From: Alessandro Aimi Date: Fri, 8 Mar 2024 13:42:32 +0100 Subject: [PATCH] Add licence to test/example files + fix missing copyrights/text in licences (#154) --- examples/adr-example.cc | 19 +++++++++++++++++++ examples/aloha-throughput.cc | 19 +++++++++++++++++++ examples/complete-network-example.cc | 19 +++++++++++++++++++ examples/frame-counter-update.cc | 19 +++++++++++++++++++ examples/lorawan-energy-model-example.cc | 19 +++++++++++++++++++ examples/network-server-example.cc | 19 +++++++++++++++++++ examples/parallel-reception-example.cc | 19 +++++++++++++++++++ examples/simple-network-example.cc | 19 +++++++++++++++++++ helper/lora-radio-energy-model-helper.cc | 1 + helper/lora-radio-energy-model-helper.h | 1 + model/lora-radio-energy-model.cc | 4 ++++ model/lora-radio-energy-model.h | 5 +++++ model/lora-tx-current-model.cc | 5 +++++ model/lora-tx-current-model.h | 5 +++++ model/lora-utils.cc | 5 +++++ model/lora-utils.h | 5 +++++ test/lorawan-test-suite.cc | 18 ++++++++++++++++++ test/network-scheduler-test-suite.cc | 15 +++++++++++++++ test/network-server-test-suite.cc | 21 +++++++++++++++++++-- test/network-status-test-suite.cc | 21 +++++++++++++++++++-- test/utilities.cc | 19 +++++++++++++++++++ test/utilities.h | 1 + 22 files changed, 274 insertions(+), 4 deletions(-) diff --git a/examples/adr-example.cc b/examples/adr-example.cc index 65b6d66ce0..5a8583b4ff 100644 --- a/examples/adr-example.cc +++ b/examples/adr-example.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2018 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This program creates a simple network which uses an ADR algorithm to set up * the Spreading Factors of the devices in the Network. diff --git a/examples/aloha-throughput.cc b/examples/aloha-throughput.cc index 1c2e3aaea7..515d0db32f 100644 --- a/examples/aloha-throughput.cc +++ b/examples/aloha-throughput.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + #include "ns3/building-allocator.h" #include "ns3/building-penetration-loss.h" #include "ns3/buildings-helper.h" diff --git a/examples/complete-network-example.cc b/examples/complete-network-example.cc index 32df7b98bb..665a1868e1 100644 --- a/examples/complete-network-example.cc +++ b/examples/complete-network-example.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This script simulates a complex scenario with multiple gateways and end * devices. The metric of interest for this script is the throughput of the diff --git a/examples/frame-counter-update.cc b/examples/frame-counter-update.cc index bb72773bcb..8a4dbba6de 100644 --- a/examples/frame-counter-update.cc +++ b/examples/frame-counter-update.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This script simulates a complex scenario with multiple gateways and end * devices. The metric of interest for this script is the throughput of the diff --git a/examples/lorawan-energy-model-example.cc b/examples/lorawan-energy-model-example.cc index 3b46e8b37a..2474c1cde5 100644 --- a/examples/lorawan-energy-model-example.cc +++ b/examples/lorawan-energy-model-example.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This script simulates a simple network to explain how the Lora energy model * works. diff --git a/examples/network-server-example.cc b/examples/network-server-example.cc index 65d14a9ed4..e86408bc1a 100644 --- a/examples/network-server-example.cc +++ b/examples/network-server-example.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This example creates a simple network in which all LoRaWAN components are * simulated: End Devices, some Gateways and a Network Server. diff --git a/examples/parallel-reception-example.cc b/examples/parallel-reception-example.cc index d0a1b96d2f..c42ca3898f 100644 --- a/examples/parallel-reception-example.cc +++ b/examples/parallel-reception-example.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This script simulates a simple network in which one end device sends one * packet to the gateway. diff --git a/examples/simple-network-example.cc b/examples/simple-network-example.cc index 59a478948d..c1714e0b8c 100644 --- a/examples/simple-network-example.cc +++ b/examples/simple-network-example.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This script simulates a simple network in which one end device sends one * packet to the gateway. diff --git a/helper/lora-radio-energy-model-helper.cc b/helper/lora-radio-energy-model-helper.cc index 8ca58ff03e..2e8da59f2c 100644 --- a/helper/lora-radio-energy-model-helper.cc +++ b/helper/lora-radio-energy-model-helper.cc @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as diff --git a/helper/lora-radio-energy-model-helper.h b/helper/lora-radio-energy-model-helper.h index 014af5a231..bbbb15c1e3 100644 --- a/helper/lora-radio-energy-model-helper.h +++ b/helper/lora-radio-energy-model-helper.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as diff --git a/model/lora-radio-energy-model.cc b/model/lora-radio-energy-model.cc index 36ccd4de2f..911ea816f2 100644 --- a/model/lora-radio-energy-model.cc +++ b/model/lora-radio-energy-model.cc @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -9,6 +10,9 @@ * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Author: Romagnolo Stefano */ diff --git a/model/lora-radio-energy-model.h b/model/lora-radio-energy-model.h index 84a3cd41c7..f93ac6ee11 100644 --- a/model/lora-radio-energy-model.h +++ b/model/lora-radio-energy-model.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -9,6 +10,10 @@ * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * Authors: Romagnolo Stefano * Davide Magrin */ diff --git a/model/lora-tx-current-model.cc b/model/lora-tx-current-model.cc index a0003d7f70..586c4c8c9d 100644 --- a/model/lora-tx-current-model.cc +++ b/model/lora-tx-current-model.cc @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -9,6 +10,10 @@ * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * Author: Romagnolo Stefano */ diff --git a/model/lora-tx-current-model.h b/model/lora-tx-current-model.h index 92a3000855..cf3d18e93c 100644 --- a/model/lora-tx-current-model.h +++ b/model/lora-tx-current-model.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -9,6 +10,10 @@ * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * Authors: Romagnolo Stefano * Davide Magrin */ diff --git a/model/lora-utils.cc b/model/lora-utils.cc index 6d5bc3ba19..500de58090 100644 --- a/model/lora-utils.cc +++ b/model/lora-utils.cc @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -9,6 +10,10 @@ * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * Author: Romagnolo Stefano */ diff --git a/model/lora-utils.h b/model/lora-utils.h index 7e0cc6f981..605c189591 100644 --- a/model/lora-utils.h +++ b/model/lora-utils.h @@ -1,4 +1,5 @@ /* + * Copyright (c) 2017 University of Padova * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -9,6 +10,10 @@ * 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * Author: Romagnolo Stefano */ diff --git a/test/lorawan-test-suite.cc b/test/lorawan-test-suite.cc index 8de84aea6c..6cb77de91c 100644 --- a/test/lorawan-test-suite.cc +++ b/test/lorawan-test-suite.cc @@ -1,3 +1,21 @@ +/* + * Copyright (c) 2017 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ // Include headers of classes to test #include "ns3/constant-position-mobility-model.h" diff --git a/test/network-scheduler-test-suite.cc b/test/network-scheduler-test-suite.cc index c4d0a710ce..3a12f5779d 100644 --- a/test/network-scheduler-test-suite.cc +++ b/test/network-scheduler-test-suite.cc @@ -1,4 +1,19 @@ /* + * Copyright (c) 2018 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * Author: Davide Magrin */ diff --git a/test/network-server-test-suite.cc b/test/network-server-test-suite.cc index 75549c5276..77801101ba 100644 --- a/test/network-server-test-suite.cc +++ b/test/network-server-test-suite.cc @@ -1,10 +1,27 @@ +/* + * Copyright (c) 2018 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This file includes testing for the following components: * - EndDeviceServer * - GatewayServer * - NetworkServer - * - * Author: Davide Magrin */ // Include headers of classes to test diff --git a/test/network-status-test-suite.cc b/test/network-status-test-suite.cc index cc3ee4aa43..0fec10a596 100644 --- a/test/network-status-test-suite.cc +++ b/test/network-status-test-suite.cc @@ -1,10 +1,27 @@ +/* + * Copyright (c) 2018 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Davide Magrin + */ + /* * This file includes testing for the following components: * - EndDeviceStatus * - GatewayStatus * - NetworkStatus - * - * Author: Davide Magrin */ // Include headers of classes to test diff --git a/test/utilities.cc b/test/utilities.cc index f9404cfbab..706e81773b 100644 --- a/test/utilities.cc +++ b/test/utilities.cc @@ -1,3 +1,22 @@ +/* + * Copyright (c) 2018 University of Padova + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation; + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Authors: Davide Magrin + */ + #include "utilities.h" namespace ns3 diff --git a/test/utilities.h b/test/utilities.h index 2500572954..1f2d62a1c2 100644 --- a/test/utilities.h +++ b/test/utilities.h @@ -16,6 +16,7 @@ * * Authors: Davide Magrin */ + #ifndef TEST_UTILITIES_H #define TEST_UTILITIES_H