TypeId = self.ns3.TypeId()
typeid = TypeId.LookupByName(factory_id)
- info = TypeId.AttributeInfo()
+ info = TypeId.AttributeInformation()
if not typeid or not typeid.LookupAttributeByName(name, info):
raise AttributeError("Invalid attribute %s for element type %d" % \
(name, guid))
def _schedule_event(self, condition, func, *args):
"""Schedules event on running experiment"""
- def execute_event(condition, has_event_occurred, func, *args):
+ def execute_event(contextId, condition, has_event_occurred, func, *args):
# exec func
try:
func(*args)
factory_id = self._create[guid]
TypeId = self.ns3.TypeId()
typeid = TypeId.LookupByName(factory_id)
- info = TypeId.AttributeInfo()
+ info = TypeId.AttributeInformation()
if not typeid.LookupAttributeByName(name, info):
raise RuntimeError("Attribute %s doesn't belong to element %s" \
% (name, factory_id))
TypeId = self.ns3.TypeId()
typeid = TypeId.LookupByName(factory_id)
for name, value in params.iteritems():
- info = self.ns3.TypeId.AttributeInfo()
+ info = self.ns3.TypeId.AttributeInformation()
found = typeid.LookupAttributeByName(name, info)
if found and \
(info.flags & TypeId.ATTR_CONSTRUCT == TypeId.ATTR_CONSTRUCT):
from ns.olsr import *
from ns.aodv import *
from ns.dsdv import *
-from ns.click import *
+#from ns.click import *
from ns.mobility import *
from ns.wifi import *
from ns.netanim import *
from ns.topology_read import *
from ns.energy import *
from ns.tools import *
-from ns.visualizer import *
+#from ns.visualizer import *
from ns.point_to_point_layout import *
from ns.fd_net_device import *