Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1703)

Issue 305270043: ns-3 SOCIS 2016 midterm/final

Can't Edit
Can't Publish+Mail
Start Review
Created:
7 years, 8 months ago by Tom Henderson
Modified:
7 years, 5 months ago
Reviewers:
n.p
CC:
ns-3-reviews_googlegroups.com, Michael D, jani.puttonen, Tommaso Pecorella
Visibility:
Public.

Description

ns-3 SOCIS 2016 midterm and final code review, from Michael Di Perna. Midterm is patchset 1: Generated documentation can be found at: https://www.nsnam.org/reviews/2016/socis-midterm/fso.html Final is patchset 2, which includes patchset 1: Generated documentation can be found at: https://www.nsnam.org/reviews/2016/socis-final/fso.html

Patch Set 1 : Midterm code review #

Total comments: 2

Patch Set 2 : Final code review #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+6087 lines, -0 lines) Patch
A src/fso/doc/fso.rst View 1 1 chunk +230 lines, -0 lines 2 comments Download
A src/fso/examples/fso-channel-example.cc View 1 1 chunk +165 lines, -0 lines 0 comments Download
A src/fso/examples/fso-channel-helper-example.cc View 1 1 chunk +167 lines, -0 lines 0 comments Download
A src/fso/examples/fso-error-model-example.cc View 1 1 chunk +92 lines, -0 lines 0 comments Download
A src/fso/examples/fso-irradiance-curve.cc View 1 1 chunk +229 lines, -0 lines 3 comments Download
A src/fso/examples/wscript View 1 1 chunk +15 lines, -0 lines 0 comments Download
A src/fso/helper/fso-helper.h View 1 1 chunk +377 lines, -0 lines 0 comments Download
A src/fso/helper/fso-helper.cc View 1 1 chunk +379 lines, -0 lines 0 comments Download
A src/fso/model/fso-channel.h View 1 chunk +115 lines, -0 lines 0 comments Download
A src/fso/model/fso-channel.cc View 1 1 chunk +150 lines, -0 lines 0 comments Download
A src/fso/model/fso-down-link-scintillation-index-model.h View 1 1 chunk +133 lines, -0 lines 0 comments Download
A src/fso/model/fso-down-link-scintillation-index-model.cc View 1 1 chunk +168 lines, -0 lines 0 comments Download
A src/fso/model/fso-error-model.h View 1 1 chunk +194 lines, -0 lines 1 comment Download
A src/fso/model/fso-error-model.cc View 1 1 chunk +252 lines, -0 lines 1 comment Download
A src/fso/model/fso-free-space-loss-model.h View 1 1 chunk +85 lines, -0 lines 0 comments Download
A src/fso/model/fso-free-space-loss-model.cc View 1 1 chunk +82 lines, -0 lines 0 comments Download
A src/fso/model/fso-mac.h View 1 1 chunk +220 lines, -0 lines 2 comments Download
A src/fso/model/fso-mac.cc View 1 1 chunk +167 lines, -0 lines 0 comments Download
A src/fso/model/fso-mean-irradiance-model.h View 1 1 chunk +91 lines, -0 lines 0 comments Download
A src/fso/model/fso-mean-irradiance-model.cc View 1 1 chunk +104 lines, -0 lines 0 comments Download
A src/fso/model/fso-net-device.h View 1 1 chunk +160 lines, -0 lines 1 comment Download
A src/fso/model/fso-net-device.cc View 1 1 chunk +409 lines, -0 lines 0 comments Download
A src/fso/model/fso-phy.h View 1 1 chunk +292 lines, -0 lines 0 comments Download
A src/fso/model/fso-phy.cc View 1 1 chunk +306 lines, -0 lines 0 comments Download
A src/fso/model/fso-propagation-loss-model.h View 1 chunk +142 lines, -0 lines 0 comments Download
A src/fso/model/fso-propagation-loss-model.cc View 1 chunk +93 lines, -0 lines 0 comments Download
A src/fso/model/fso-signal-parameters.h View 1 chunk +147 lines, -0 lines 0 comments Download
A src/fso/model/fso-signal-parameters.cc View 1 chunk +72 lines, -0 lines 0 comments Download
A src/fso/model/laser-antenna-model.h View 1 chunk +79 lines, -0 lines 0 comments Download
A src/fso/model/laser-antenna-model.cc View 1 chunk +171 lines, -0 lines 0 comments Download
A src/fso/model/optical-rx-antenna-model.h View 1 1 chunk +99 lines, -0 lines 0 comments Download
A src/fso/model/optical-rx-antenna-model.cc View 1 1 chunk +144 lines, -0 lines 0 comments Download
A src/fso/test/fso-propagation-loss-test-suite.cc View 1 chunk +346 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcDiffractiveBeamRadius.m View 1 chunk +11 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcFadeDuration.m View 1 chunk +13 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcFadeThreshold.m View 1 chunk +9 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcFreeSpaceLoss.m View 1 chunk +5 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcMeanIrradiance.m View 1 chunk +7 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcNumFades.m View 1 chunk +14 lines, -0 lines 0 comments Download
A src/fso/test/references/CalcScintillationIdx.m View 1 chunk +14 lines, -0 lines 0 comments Download
A src/fso/test/references/NormIrradianceCurve.m View 1 chunk +18 lines, -0 lines 0 comments Download
A src/fso/test/references/PlotMeanIrradiance.m View 1 chunk +16 lines, -0 lines 0 comments Download
A src/fso/test/references/PlotScintillationIndex.m View 1 chunk +14 lines, -0 lines 0 comments Download
A src/fso/test/references/ProbabilityOfFade.m View 1 chunk +11 lines, -0 lines 0 comments Download
A src/fso/test/references/PropagationLoss.m View 1 chunk +22 lines, -0 lines 0 comments Download
A src/fso/wscript View 1 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 1
n.p
7 years, 5 months ago (2016-11-06 14:41:43 UTC) #1
I have reviewed the code, I have found some c++ minor things and some
documentation missing. On the manual, I would like to see also some use cases
for the work done.

Except these little things, the code looks ok, exept the part of the NetDevice,
which is not compatible with Traffic Control. This is a serious lack, because we
are struggling in porting old code to use tc layer, and it would be strange to
accept new code without the support to it.

So for me it's a conditional accept, where the conditional is based on the
traffic control support (by the way, it's very easy to add, don't be scared :D).

Anyway good job, if you (or the mentors) have questions, feel free to ask.

Natale

https://codereview.appspot.com/305270043/diff/1/src/fso/helper/fso-helper.h
File src/fso/helper/fso-helper.h (right):

https://codereview.appspot.com/305270043/diff/1/src/fso/helper/fso-helper.h#n...
src/fso/helper/fso-helper.h:11: #endif /* FSO_HELPER_H */
if the helper is not needed, please don't include it.

and (this holds for all the sources) please pass them through the check
formatter, in the utils/ directory.

https://codereview.appspot.com/305270043/diff/1/src/fso/model/fso-channel.h
File src/fso/model/fso-channel.h (right):

https://codereview.appspot.com/305270043/diff/1/src/fso/model/fso-channel.h#n...
src/fso/model/fso-channel.h:4: *
Is that a correct copyright statement? Please pay attention to this header, is
the most important.

https://codereview.appspot.com/305270043/diff/20001/src/fso/doc/fso.rst
File src/fso/doc/fso.rst (right):

https://codereview.appspot.com/305270043/diff/20001/src/fso/doc/fso.rst#newco...
src/fso/doc/fso.rst:176: 
Is this still true? I see some helpers in the the helpers/ directory.

https://codereview.appspot.com/305270043/diff/20001/src/fso/doc/fso.rst#newco...
src/fso/doc/fso.rst:228: "Preliminary Results of Terabit-per-second Long-Range
Free-Space Optical Transmission Experiment THRUST" and "Overview of the Laser
Communication System for the NICT Optical Ground Station and Laser Communication
Experiments on Ground-to-Satellite Links".
Can you provide links to the published material ?

https://codereview.appspot.com/305270043/diff/20001/src/fso/examples/fso-irra...
File src/fso/examples/fso-irradiance-curve.cc (right):

https://codereview.appspot.com/305270043/diff/20001/src/fso/examples/fso-irra...
src/fso/examples/fso-irradiance-curve.cc:67: Gnuplot2dDataset g_dataset;
This variable should be declared as static in order to not pollute the namespace
and to not be confused with other global variables

https://codereview.appspot.com/305270043/diff/20001/src/fso/examples/fso-irra...
src/fso/examples/fso-irradiance-curve.cc:69: void
this function should be declared as static in order to not pollute the namespace

https://codereview.appspot.com/305270043/diff/20001/src/fso/examples/fso-irra...
src/fso/examples/fso-irradiance-curve.cc:77: void
this function should be declared as static in order to not pollute the namespace

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-error-m...
File src/fso/model/fso-error-model.cc (right):

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-error-m...
src/fso/model/fso-error-model.cc:234: {
Make these static member of the class

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-error-m...
File src/fso/model/fso-error-model.h (right):

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-error-m...
src/fso/model/fso-error-model.h:48: double GWIntegralFunction (double x, void
*params);
These definitions will pollute the namespace. I would add these as static member
of the class.

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-mac.h
File src/fso/model/fso-mac.h (right):

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-mac.h#n...
src/fso/model/fso-mac.h:33: //#include "ns3/qos-utils.h"
Remove these comments if they are not needed

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-mac.h#n...
src/fso/model/fso-mac.h:39: class FsoMac  : public Object
The class misses the doxygen documentation.

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-net-dev...
File src/fso/model/fso-net-device.h (right):

https://codereview.appspot.com/305270043/diff/20001/src/fso/model/fso-net-dev...
src/fso/model/fso-net-device.h:47: class FsoNetDevice : public NetDevice
The class misses the support for the Traffic Control layer (and the FsoMac too).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b