Bug 1350

Summary: Simulator.ScheduleWithContext Python binding missing
Product: ns-3 Reporter: alina <aquereilhac>
Component: python bindingsAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   
Attachments: patch to add Python binding for Simulator.ScheduleWithContext

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...