Esempio n. 1
0
 def notimestamp_(self, node, time_):
     if time_ >= node.currentTime:
         for n in range(0, node.params['speed']):
             if len(node.p) > 0:
                 pos = node.p[0]
                 del node.p[0]
                 node.currentTime += node.timestamp
                 mobility.set_pos(node, pos)
Esempio n. 2
0
 def notimestamp_(self, node, time_):
     if time_ >= node.currentTime:
         for n in range(0, node.params['speed']):
             if len(node.position) > 0:
                 pos = node.position[0]
                 del node.position[0]
                 node.currentTime += node.timestamp
                 mobility.set_pos(node, pos)
Esempio n. 3
0
 def timestamp_(self, node, time_):
     if time_ >= float(node.time[0]):
         pos = node.p[0]
         del node.p[0]
         del node.time[0]
         mobility.set_pos(node, pos)
Esempio n. 4
0
 def timestamp_(self, node, time_):
     if time_ >= float(node.time[0]):
         pos = node.position[0]
         del node.position[0]
         del node.time[0]
         mobility.set_pos(node, pos)