def __init__(self, xs, ys, dirs, debug=False): assert len(xs) == len(ys) == len(dirs) """ prints ants status if setted in True """ self._debugModeOn = debug # init data self.xs = [float(x) for x in xs] self.ys = [float(y) for y in ys] self.directions = list(dirs) self.antFactory = AntFactory() self.createAnts() self.createAntsPairsSimulation() self.orderAntsPairsByTime() self.filterAntsPairs()