def plot_window(self, event): if self.node.hostname == 'n1': Sim.plot('cwnd.csv', '%s,%s,%s,%s\n' % (Sim.scheduler.current_time(), self.window, self.threshold, event))
def plot_window_header(self): if self.node.hostname == 'n1': Sim.plot('cwnd.csv','Time,Congestion Window,Threshold,Event\n')
def plot_sequence(self,sequence,event): if self.node.hostname =='n1': Sim.plot('sequence.csv','%s,%s,%s\n' % (Sim.scheduler.current_time(),sequence,event))
def plot_sequence_header(self): if self.node.hostname =='n1': Sim.plot('sequence.csv','Time,Sequence Number,Event\n')
def plot_cwnd(self): if self.node.hostname == 'n1': Sim.plot( 'cwnd.csv', '%s,%s\n' % (Sim.scheduler.current_time(), int(self.cwnd)))
def plot_cwnd_header(self): if self.node.hostname == 'n1': Sim.plot('cwnd.csv', 'Time,Congestion Window\n')