def __init__(self, ec, guid):
super(NS3BaseNode, self).__init__(ec, guid)
self._simulation = None
+ self._node_id = None
self._ipv4 = None
self._arp = None
self._mobility = None
return self._devices
+ @property
+ def node_id(self):
+ return self._node_id
+
@property
def dceapplications(self):
if not self._dceapplications:
uuid_packet_socket_factory = self.simulation.create("PacketSocketFactory")
self.simulation.invoke(self.uuid, "AggregateObject", uuid_packet_socket_factory)
+ self._node_id = self.simulation.invoke(self.uuid, "GetId")
+
dceapplications = self.dceapplications
if dceapplications:
self._add_dce(dceapplications)