Esempio n. 1
0
 def __str__(self):
     return "%s %s %s %s:%s %d" % \
            (TimeUtils.time_to_string(self.start_time), self.stage_id, self.src_ip,
             self.dst_ip, self.dst_port, self.size)
Esempio n. 2
0
 def __str__(self):
     return "Coflow " + str(self.coflow_id) + ":\n" + TimeUtils.time_to_string(self.start_time) + " " + \
            str((self.end_time - self.start_time).total_seconds()) + '\n' + "Logical Flows:\n" + \
            "\n".join(map(str, self.logical_flows.values())) + "\n" + "Real Flows:\n" + \
            "\n".join(map(str, self.realistic_flows.values()))
Esempio n. 3
0
 def __str__(self):
     return "%s\t%s\t%s:%s->%s:%s\t%d\t%d" % \
            (TimeUtils.time_to_string(self.start_time),
             self.duration.total_seconds(), self.src_ip, self.src_port, self.dst_ip, self.dst_port,
             self.size, self.retransmit_bytes)
Esempio n. 4
0
 def __str__(self):
     return "Coflow " + str(self.coflow_id) + ":\n" + TimeUtils.time_to_string(self.start_time) + " " + \
            str((self.end_time - self.start_time).total_seconds()) + '\n' + "Logical Flows:\n" + \
            "\n".join(map(str, self.logical_flows.values())) + "\n" + "Real Flows:\n" + \
            "\n".join(map(str, self.realistic_flows.values()))
Esempio n. 5
0
 def __str__(self):
     return str(self.stage_id) + " " + TimeUtils.time_to_string(self.packet_time) + " "\
             + self.src_ip + ":" + self.src_port + " " + self.dst_ip + ":" + self.dst_port\
             + " " + str(self.packet_size)
Esempio n. 6
0
 def __str__(self):
     return "%s\t%s\t%s:%s->%s:%s\t%d\t%d" % \
            (TimeUtils.time_to_string(self.start_time),
             self.duration.total_seconds(), self.src_ip, self.src_port, self.dst_ip, self.dst_port,
             self.size, self.retransmit_bytes)
Esempio n. 7
0
 def __str__(self):
     return "%s %s %s %s:%s %d" % \
            (TimeUtils.time_to_string(self.start_time), self.stage_id, self.src_ip,
             self.dst_ip, self.dst_port, self.size)