Exemplo n.º 1
0
 def __str__(self):
     return 'Ship(size: {}, arrival_t: {})'.format(
         self.size, time_str(self.arrival_time))
Exemplo n.º 2
0
 def __str__(self):
     return "[{}] : TransportShipsInsideDike(dike: {}, ships_registred: {})".format(
         time_str(self.time), self.dike.identifier,
         self.dike.ships_registred_to_in)
Exemplo n.º 3
0
 def __str__(self):
     return "[{}] : TransportInDike(dike: {})".format(
         time_str(self.time), self.dike.identifier)
Exemplo n.º 4
0
 def __str__(self):
     return "[{}] : OpenDikeEntryGates(dike: {})".format(
         time_str(self.time), self.dike.identifier)
Exemplo n.º 5
0
 def __str__(self):
     return "[{}] : EnqueueToDike(dike: {}, ship: arrived_at({}))".format(
         time_str(self.time), self.dike.identifier, self.ship.arrival_time)
Exemplo n.º 6
0
 def __str__(self):
     return "[{}] : ShipArriveToChannel(ship: (arrived_at: {}, size: {}))".format(
         time_str(self.time), self.ship.arrival_time, self.ship.size)
Exemplo n.º 7
0
 def __str__(self):
     return "[{}] : ExitShipsFromChannel(amount: {})".format(
         time_str(self.time), len(self.ships_exiting))
Exemplo n.º 8
0
 def __str__(self):
     return "[{}] : ExitShipsFromDike(dike: {} amount: {})".format(
         time_str(self.time), self.dike.identifier,
         len(self.dike.ships_inside))