Alexander Afanasyev | fce5bbd | 2013-08-07 18:50:00 -0700 | [diff] [blame^] | 1 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- |
| 2 | # |
| 3 | # Copyright (c) 2011-2013, Regents of the University of California |
| 4 | # Alexander Afanasyev |
| 5 | # |
| 6 | # GNU 3.0 license, See the LICENSE file for more information |
| 7 | # |
| 8 | # Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 9 | # |
| 10 | |
| 11 | # |
| 12 | # Based on PyCCN code, copyrighted and licensed as follows |
| 13 | # |
| 14 | # Copyright (c) 2011-2013, Regents of the University of California |
| 15 | # BSD license, See the COPYING file for more information |
| 16 | # Written by: Derek Kulinski <takeda@takeda.tk> |
| 17 | # Jeff Burke <jburke@ucla.edu> |
| 18 | # |
| 19 | |
| 20 | import ns.core |
| 21 | |
| 22 | class EventLoop (object): |
| 23 | """ |
| 24 | Class to provide compatibility with real PyNDN implementation. |
| 25 | """ |
| 26 | |
| 27 | def __init__ (self, *handlers): |
| 28 | pass |
| 29 | |
| 30 | def execute (self, event): |
| 31 | ns.core.Simulator.ScheduleNow (event) |
| 32 | |
| 33 | def run (self): |
| 34 | pass |
| 35 | |
| 36 | def stop (self): |
| 37 | pass |