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

Issue 6530051: Mathieu's Object::Stop() patch, cleaned up and documented

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by Vedran Miletić
Modified:
11 years, 3 months ago
CC:
ns-3-reviews_googlegroups.com
Visibility:
Public.

Description

Mathieu's Object::Stop() patch, cleaned up and documented

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add Reset() method, set Iterate parameters to false #

Patch Set 3 : Real updated patch set without Reset() #

Total comments: 7

Patch Set 4 : Updated patch again, all tests pass #

Patch Set 5 : Fix documentation per Tom Henderson's comments, LTE test still fails (wating for Manuel Requena's a… #

Patch Set 6 : Hopefully final patch, LTE fix by Manuel Requena #

Patch Set 7 : Updated patch, rebased on ns-3-dev 9215:5d5d2435bc3b #

Total comments: 15

Patch Set 8 : Updated patch set per Tom's comments #

Total comments: 6

Patch Set 9 : Updated patch set per Mathieu's comments, removed unrelated/useless changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1813 lines, -211 lines) Patch
M doc/manual/source/object-model.rst View 1 2 3 4 5 6 7 3 chunks +83 lines, -7 lines 0 comments Download
M doc/manual/source/tracing.rst View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A src/applications/test/onoff-application-test-suite.cc View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download
M src/applications/wscript View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/core/model/default-simulator-impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/core/model/default-simulator-impl.cc View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -5 lines 0 comments Download
M src/core/model/object.h View 1 2 3 4 5 6 7 8 chunks +117 lines, -7 lines 0 comments Download
M src/core/model/object.cc View 1 2 3 4 5 6 7 8 4 chunks +105 lines, -24 lines 0 comments Download
M src/core/model/realtime-simulator-impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/core/model/realtime-simulator-impl.cc View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M src/core/test/object-test-suite.cc View 1 2 3 4 5 6 7 chunks +142 lines, -7 lines 0 comments Download
A src/core/utils/started-stopped-state-changer.h View 1 2 3 4 5 6 7 1 chunk +120 lines, -0 lines 0 comments Download
A src/core/utils/started-stopped-state-changer.cc View 1 2 3 4 5 6 7 1 chunk +193 lines, -0 lines 0 comments Download
A src/core/utils/started-stopped-time-tracker.h View 1 2 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
A src/core/utils/started-stopped-time-tracker.cc View 1 2 3 4 5 6 7 1 chunk +155 lines, -0 lines 0 comments Download
M src/core/wscript View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M src/flow-monitor/model/flow-monitor.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M src/flow-monitor/model/flow-monitor.cc View 1 2 3 4 8 chunks +10 lines, -11 lines 0 comments Download
M src/lte/test/lte-test-entities.h View 1 2 3 4 5 3 chunks +8 lines, -6 lines 0 comments Download
M src/lte/test/lte-test-entities.cc View 1 2 3 4 5 4 chunks +19 lines, -8 lines 0 comments Download
M src/mpi/model/distributed-simulator-impl.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/mpi/model/distributed-simulator-impl.cc View 1 2 3 5 chunks +6 lines, -5 lines 0 comments Download
M src/netanim/test/netanim-test.cc View 1 2 3 4 5 6 2 chunks +15 lines, -3 lines 0 comments Download
M src/network/helper/net-device-container.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/network/helper/net-device-container.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M src/network/model/application.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M src/network/model/application.cc View 1 2 3 4 5 6 7 2 chunks +31 lines, -3 lines 0 comments Download
M src/network/model/node.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/network/model/node.cc View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A src/network/test/application-test-suite.cc View 1 2 3 4 5 6 7 1 chunk +142 lines, -0 lines 0 comments Download
A src/network/test/node-test-suite.cc View 1 2 3 4 5 6 7 1 chunk +115 lines, -0 lines 0 comments Download
M src/network/wscript View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/point-to-point/model/point-to-point-channel.h View 1 2 3 4 5 6 3 chunks +12 lines, -0 lines 0 comments Download
M src/point-to-point/model/point-to-point-channel.cc View 1 2 3 4 5 6 4 chunks +55 lines, -9 lines 0 comments Download
M src/point-to-point/model/point-to-point-net-device.h View 1 2 3 4 5 6 3 chunks +12 lines, -4 lines 0 comments Download
M src/point-to-point/model/point-to-point-net-device.cc View 1 2 3 4 5 6 8 chunks +42 lines, -9 lines 0 comments Download
M src/point-to-point/test/point-to-point-test.cc View 1 2 3 4 5 6 7 4 chunks +119 lines, -14 lines 0 comments Download
M src/spectrum/model/spectrum-analyzer.h View 1 2 3 4 1 chunk +2 lines, -11 lines 0 comments Download
M src/spectrum/model/spectrum-analyzer.cc View 1 2 3 4 1 chunk +4 lines, -12 lines 0 comments Download
M src/spectrum/model/waveform-generator.h View 1 2 3 4 2 chunks +2 lines, -10 lines 0 comments Download
M src/spectrum/model/waveform-generator.cc View 1 2 3 4 3 chunks +7 lines, -19 lines 0 comments Download
M src/test/global-routing-test-suite.cc View 1 2 3 4 5 6 7 chunks +11 lines, -11 lines 0 comments Download
M src/wimax/model/bs-net-device.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/wimax/model/bs-net-device.cc View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M src/wimax/model/ss-net-device.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M src/wimax/model/ss-net-device.cc View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M src/wimax/model/wimax-net-device.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 7
Vedran Miletić
As said on mailing list, Reset() method is missing, but that's trivial. http://codereview.appspot.com/6530051/diff/1/src/core/model/object.cc File src/core/model/object.cc ...
11 years, 7 months ago (2012-09-20 11:08:21 UTC) #1
Tom Henderson
http://codereview.appspot.com/6530051/diff/6002/src/core/model/object.h File src/core/model/object.h (right): http://codereview.appspot.com/6530051/diff/6002/src/core/model/object.h#newcode159 src/core/model/object.h:159: * an object, unlike DoDispose. This method starts the ...
11 years, 6 months ago (2012-10-15 13:28:26 UTC) #2
Tom Henderson
correct my Doxygen suggestion http://codereview.appspot.com/6530051/diff/6002/src/core/model/object.h File src/core/model/object.h (right): http://codereview.appspot.com/6530051/diff/6002/src/core/model/object.h#newcode159 src/core/model/object.h:159: * an object, unlike DoDispose. ...
11 years, 6 months ago (2012-10-15 13:29:56 UTC) #3
Tom Henderson
This patch makes good progress. It introduces src/core/utils directory. Can you suggest an incremental merge ...
11 years, 3 months ago (2013-01-09 15:06:53 UTC) #4
Vedran Miletić
Fixed all of those, thanks a lot for your comments. Updated patchset coming. I would ...
11 years, 3 months ago (2013-01-18 19:47:52 UTC) #5
Mathieu Lacage
There are really too many things in this patch: 1) I see changes in the ...
11 years, 3 months ago (2013-01-20 16:27:18 UTC) #6
Vedran Miletić
11 years, 3 months ago (2013-01-20 18:27:13 UTC) #7
Hi Mathieu,

thanks for your comments. Fixed patch coming soon.

https://codereview.appspot.com/6530051/diff/44001/src/core/model/default-simu...
File src/core/model/default-simulator-impl.cc (right):

https://codereview.appspot.com/6530051/diff/44001/src/core/model/default-simu...
src/core/model/default-simulator-impl.cc:57: m_main = SystemThread::Self();
On 2013/01/20 16:27:18, Mathieu Lacage wrote:
> is there a reason for that change ?

Can't remember, probably not. Will revert it.

https://codereview.appspot.com/6530051/diff/44001/src/core/model/default-simu...
src/core/model/default-simulator-impl.cc:191: Object::Start ();
On 2013/01/20 16:27:18, Mathieu Lacage wrote:
> Do you need this to catch 'simulation start' events ?

Yes, this is a replacement for m_stop bool variable in accordance to new
Start/Stop interface. (Simulator is an Object after all.)

Do you have a better idea?

https://codereview.appspot.com/6530051/diff/44001/src/network/model/node.cc
File src/network/model/node.cc (left):

https://codereview.appspot.com/6530051/diff/44001/src/network/model/node.cc#o...
src/network/model/node.cc:172: for (std::vector<Ptr<NetDevice> >::iterator i =
m_devices.begin ();
On 2013/01/20 16:27:18, Mathieu Lacage wrote:
> that kind of totally gratuitious change does not make patch review any easier.


I will remove these, updated patch coming soon.
Sign in to reply to this message.

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