def setendtime(self):
        ''' Set self.endtime to the time of the last waypoint in the queue of
            waypoints. This is just an estimate. The endtime will later be 
            adjusted, after one round of the script has run, to be the time
            that the last moving node has reached its final waypoint.
        '''
        try:
            self.endtime = self.queue[-1].time
        except __HOLE__:
            self.endtime = 0
dataset/ETHPy150Open coreemu/core/daemon/core/mobility.py/WayPointMobility.setendtime