private void report() { Measurement m = new Measurement(); m.time = this.time; m.carArrived = this.carArrived; m.carDeparted = this.carDeparted; m.carOnRoad = this.carOnRoad; m.pedArrived = this.pedArrived; m.pedDeparted = this.pedDeparted; m.pedOnRoad = this.pedOnRoad; this.ms.add(m); }