Bug 1350 - Simulator.ScheduleWithContext Python binding missing
Simulator.ScheduleWithContext Python binding missing
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: python bindings
ns-3-dev
All All
: P5 normal
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-29 14:44 UTC by alina
Modified: 2012-02-14 12:47 UTC (History)
1 user (show)

See Also:


Attachments
patch to add Python binding for Simulator.ScheduleWithContext (3.56 KB, patch)
2012-01-29 14:44 UTC, alina
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description alina 2012-01-29 14:44:25 UTC
Created attachment 1316 [details]
patch to add Python binding for Simulator.ScheduleWithContext

Hello,

Attached is a proposed patch for Simulator.ScheduleWithContext Python binding, which seems to be missing.
Comment 1 Gustavo J. A. M. Carneiro 2012-02-14 12:47:29 UTC
The patch needed a bit of additional work:
1. Accept python int or long as context;
2. Include the context in the event callback;

changeset:   7709:a1eb376aaa6a
tag:         tip
user:        alina & Gustavo Carneiro
date:        Tue Feb 14 17:45:50 2012 +0000
summary:     Bug 1350 - Simulator.ScheduleWithContext Python binding missing
Comment 2 Gustavo J. A. M. Carneiro 2012-02-14 12:47:47 UTC
And, of course, unit tests!  Added one...