Merge lp:~jan-ellenbeck/openwns-library/libwns-forIMTAphy into lp:openwns-library

Proposed by Jan
Status: Merged
Merged at revision: 239
Proposed branch: lp:~jan-ellenbeck/openwns-library/libwns-forIMTAphy
Merge into: lp:openwns-library
Diff against target: 289 lines (+231/-0)
7 files modified
config/libfiles.py (+6/-0)
src/geometry/Point.cpp (+7/-0)
src/geometry/Point.hpp (+2/-0)
src/service/phy/imta/ChannelStateInfo.hpp (+61/-0)
src/service/phy/imta/DataReception.hpp (+52/-0)
src/service/phy/imta/DataTransmission.hpp (+57/-0)
src/service/phy/imta/IMTAphyObserver.hpp (+46/-0)
To merge this branch: bzr merge lp:~jan-ellenbeck/openwns-library/libwns-forIMTAphy
Reviewer Review Type Date Requested Status
Maciej Muehleisen Approve
Review via email: mp+43814@code.launchpad.net

Description of the change

Added necessary interface for to-be released IMTAphy module. Note that the interface is still preliminary and is about to change once integration with LTE layer 2 progresses.

Also added a operator< method to wns::geometry::Point (which is aliased to wns::Position) that allows its use as a key in a std::map.

To post a comment you must log in.
Revision history for this message
Maciej Muehleisen (mue-comnets) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'config/libfiles.py'
--- config/libfiles.py 2010-09-22 19:11:27 +0000
+++ config/libfiles.py 2010-12-15 19:20:10 +0000
@@ -947,6 +947,12 @@
947'src/service/phy/ofdma/Measurements.hpp',947'src/service/phy/ofdma/Measurements.hpp',
948'src/service/phy/ofdma/Notification.hpp',948'src/service/phy/ofdma/Notification.hpp',
949'src/service/phy/ofdma/Pattern.hpp',949'src/service/phy/ofdma/Pattern.hpp',
950
951'src/service/phy/imta/ChannelStateInfo.hpp',
952'src/service/phy/imta/DataReception.hpp',
953'src/service/phy/imta/DataTransmission.hpp',
954'src/service/phy/imta/IMTAphyObserver.hpp',
955
950'src/service/phy/phymode/MI2PERInterface.hpp',956'src/service/phy/phymode/MI2PERInterface.hpp',
951'src/service/phy/phymode/PhyModeInterface.hpp',957'src/service/phy/phymode/PhyModeInterface.hpp',
952'src/service/phy/phymode/PhyModeMapperInterface.hpp',958'src/service/phy/phymode/PhyModeMapperInterface.hpp',
953959
=== modified file 'src/geometry/Point.cpp'
--- src/geometry/Point.cpp 2009-01-10 23:22:05 +0000
+++ src/geometry/Point.cpp 2010-12-15 19:20:10 +0000
@@ -27,6 +27,7 @@
2727
28#include <WNS/Position.hpp>28#include <WNS/Position.hpp>
29#include <stdexcept>29#include <stdexcept>
30#include <tr1/tuple>
3031
31using namespace std;32using namespace std;
32using namespace wns::geometry;33using namespace wns::geometry;
@@ -193,4 +194,10 @@
193 return str;194 return str;
194}195}
195196
197bool
198Point::operator<(const Point& other) const
199{
200 using std::tr1::tie;
201 return tie(get()[0], get()[1], get()[2]) < tie(other.get()[0], other.get()[1], other.get()[2]);
202}
196203
197204
=== modified file 'src/geometry/Point.hpp'
--- src/geometry/Point.hpp 2009-01-10 23:22:05 +0000
+++ src/geometry/Point.hpp 2010-12-15 19:20:10 +0000
@@ -105,6 +105,8 @@
105105
106 bool106 bool
107 operator!=(const Point& other) const;107 operator!=(const Point& other) const;
108
109 bool operator<(const Point& other) const;
108110
109 friend std::ostream&111 friend std::ostream&
110 operator<<(std::ostream& str, const Point& point)112 operator<<(std::ostream& str, const Point& point)
111113
=== added directory 'src/service/phy/imta'
=== added file 'src/service/phy/imta/ChannelStateInfo.hpp'
--- src/service/phy/imta/ChannelStateInfo.hpp 1970-01-01 00:00:00 +0000
+++ src/service/phy/imta/ChannelStateInfo.hpp 2010-12-15 19:20:10 +0000
@@ -0,0 +1,61 @@
1/*******************************************************************************
2 * This file is part of IMTAphy / openWNS
3 * _____________________________________________________________________________
4 *
5 * Copyright (C) 2010
6 * Institute of Communication Networks (LKN)
7 * Department of Electrical Engineering and Information Technology (EE & IT)
8 * Technische Universitaet Muenchen
9 * Arcisstr. 21
10 * 80333 Muenchen - Germany
11 *
12 * _____________________________________________________________________________
13 *
14 * IMTAphy is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * IMTAphy is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with IMTAphy. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28
29#ifndef WNS_SERVICE_PHY_CHANNELSTATEINFO_HPP
30#define WNS_SERVICE_PHY_CHANNELSTATEINFO_HPP
31
32#include <WNS/RefCountable.hpp>
33#include <WNS/service/phy/imta/IMTAphyObserver.hpp>
34#include <WNS/PowerRatio.hpp>
35#include <map>
36
37
38namespace wns { namespace service { namespace phy { namespace imta {
39
40 typedef unsigned int PRB;
41 typedef std::list<PRB> PRBList;
42 typedef std::map<PRB, wns::Ratio> PRBMapdB;
43 typedef std::map<PRB, wns::Power> PRBMapdBm;
44
45
46 class ChannelStateInfo :
47 public wns::RefCountable
48 {
49 public:
50 PRBMapdB sinrs;
51 PRBMapdBm rxPowers;
52 };
53
54 typedef wns::SmartPtr<ChannelStateInfo> ChannelStateInfoPtr;
55
56 }
57 }
58 }
59}
60
61#endif
062
=== added file 'src/service/phy/imta/DataReception.hpp'
--- src/service/phy/imta/DataReception.hpp 1970-01-01 00:00:00 +0000
+++ src/service/phy/imta/DataReception.hpp 2010-12-15 19:20:10 +0000
@@ -0,0 +1,52 @@
1/*******************************************************************************
2 * This file is part of IMTAphy / openWNS
3 * _____________________________________________________________________________
4 *
5 * Copyright (C) 2010
6 * Institute of Communication Networks (LKN)
7 * Department of Electrical Engineering and Information Technology (EE & IT)
8 * Technische Universitaet Muenchen
9 * Arcisstr. 21
10 * 80333 Muenchen - Germany
11 *
12 * _____________________________________________________________________________
13 *
14 * IMTAphy is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * IMTAphy is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with IMTAphy. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28
29#ifndef WNS_SERVICE_PHY_IMTA_DATARECEPTION_HPP
30#define WNS_SERVICE_PHY_IMTA_DATARECEPTION_HPP
31
32#include <WNS/osi/PDU.hpp>
33#include <WNS/SmartPtr.hpp>
34#include <WNS/node/Interface.hpp>
35#include <WNS/service/phy/imta/ChannelStateInfo.hpp>
36
37namespace wns { namespace service { namespace phy { namespace imta {
38
39 class DataReception :
40 public virtual service::Service {
41 public:
42 virtual void onData(wns::osi::PDUPtr transportBlock,
43 wns::node::Interface* source,
44 wns::SmartPtr<ChannelStateInfo> csi) = 0;
45
46 };
47
48 }}}}
49#endif
50
51
52
053
=== added file 'src/service/phy/imta/DataTransmission.hpp'
--- src/service/phy/imta/DataTransmission.hpp 1970-01-01 00:00:00 +0000
+++ src/service/phy/imta/DataTransmission.hpp 2010-12-15 19:20:10 +0000
@@ -0,0 +1,57 @@
1/*******************************************************************************
2 * This file is part of IMTAphy / openWNS
3 * _____________________________________________________________________________
4 *
5 * Copyright (C) 2010
6 * Institute of Communication Networks (LKN)
7 * Department of Electrical Engineering and Information Technology (EE & IT)
8 * Technische Universitaet Muenchen
9 * Arcisstr. 21
10 * 80333 Muenchen - Germany
11 *
12 * _____________________________________________________________________________
13 *
14 * IMTAphy is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * IMTAphy is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with IMTAphy. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28
29#ifndef WNS_SERVICE_PHY_IMTA_DATATRANSMISSION_HPP
30#define WNS_SERVICE_PHY_IMTA_DATATRANSMISSION_HPP
31
32#include <WNS/node/Node.hpp>
33#include <WNS/PowerRatio.hpp>
34#include <WNS/osi/PDU.hpp>
35#include <WNS/service/Service.hpp>
36#include <WNS/service/phy/imta/ChannelStateInfo.hpp>
37#include <vector>
38
39namespace wns { namespace service { namespace phy { namespace imta {
40
41
42
43 class DataTransmission :
44 public virtual service::Service {
45 public:
46 virtual void registerTransmission(wns::node::Interface* destination,
47 // later:
48 // - precoding (vector/matrix),
49 // - phymode
50 wns::Power txPower,
51 wns::osi::PDUPtr transportBlock,
52 PRBList transmitPRBs,
53 unsigned int TTI) = 0;
54 };
55
56 }}}}
57#endif
058
=== added file 'src/service/phy/imta/IMTAphyObserver.hpp'
--- src/service/phy/imta/IMTAphyObserver.hpp 1970-01-01 00:00:00 +0000
+++ src/service/phy/imta/IMTAphyObserver.hpp 2010-12-15 19:20:10 +0000
@@ -0,0 +1,46 @@
1/*******************************************************************************
2 * This file is part of IMTAphy / openWNS
3 * _____________________________________________________________________________
4 *
5 * Copyright (C) 2010
6 * Institute of Communication Networks (LKN)
7 * Department of Electrical Engineering and Information Technology (EE & IT)
8 * Technische Universitaet Muenchen
9 * Arcisstr. 21
10 * 80333 Muenchen - Germany
11 *
12 * _____________________________________________________________________________
13 *
14 * IMTAphy is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * IMTAphy is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with IMTAphy. If not, see <http://www.gnu.org/licenses/>.
26 *
27 ******************************************************************************/
28
29#ifndef WNS_SERVICE_PHY_IMTA_IMTAPHYOBSERVER_HPP
30#define WNS_SERVICE_PHY_IMTA_IMTAPHYOBSERVER_HPP
31
32#include <WNS/osi/PDU.hpp>
33#include <WNS/SmartPtr.hpp>
34
35namespace wns { namespace service { namespace phy { namespace imta {
36
37class IMTAphyObserver
38{
39 public:
40 virtual void onNewTTI(unsigned int ttiNumber) = 0;
41};
42
43}}}}
44
45#endif
46

Subscribers

People subscribed via source and target branches

to status/vote changes: