public static RoxelSpace valueOf(Roxel r) { return new RoxelSpace( new Id(r), DirectionSpace.valueOf(r.getDirection()), LocationSpace.valueOf(r.getLocation()), CarSpace.valueOf(r.getCar())); }
public Roxel toRoxel() { return Roxel.valueOf( direction.toDirection(), location.toLocation(), Car.valueOf(car.isEmpty())); }