package org.opentripplanner.analyst.cluster;

import org.opentripplanner.profile.ProfileRequest;

import java.io.Serializable;

/**
 * Represents a request for a profile search from a given point to all vertices in the graph.
 * @author mattwigway
 *
 */
public class OneToManyProfileRequest extends AnalystClusterRequest implements Serializable {
	public ProfileRequest options;

	/** used in single point mode with origin specified by options */
	public OneToManyProfileRequest(String to, ProfileRequest options, String graphId) {
		super(to, graphId, true);
		try {
			this.options = options.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
			throw new RuntimeException(e);
		}
		this.options.analyst = true;

		this.options.toLat = this.options.fromLat;
		this.options.toLon = this.options.fromLon;
	}
	
	/** used for deserialization from JSON */
	public OneToManyProfileRequest() { /* empty */ }
}

@@ -480,18 +480,30 @@
 (String 
-to
+destPointsetId
 , Profil
@@ -546,18 +546,30 @@
 %09%09super(
-to
+destPointsetId
 , graphI

clarify variable name