329330331332333334335336337338339
case 0: s.detector = new Detector(); s.collisionalgorithm = new CollisionAlgorithm(); break; case 1: s.detector = new AllParticles(s.particles); break; case 2: s.detector = new SweepAndPrune(s.particles); break; }