package org.opentripplanner.analyst.cluster;

import java.io.Serializable;

/**
 * Marker interface for requests sent to an SPTWorker.
 * @author matthewc
 *
 */
public abstract class AnalystClusterRequest implements Serializable {
	/** The ID of the destinations pointset */
	public String destinationPointsetId;
	
	/** The ID of the graph against which to calculate this request */
	public String graphId;
	
	/** The job ID this is associated with */
	public String jobId;

	/** The id of this particular origin */
	public String id;

	/** To where should the result be POSTed */
	public String directOutputUrl;

	/**
	 * To what queue should the notification of the result be delivered?
	 */
	public String outputQueue;

	/**
	 * Where should the job be saved?
	 */
	public String outputLocation;
	
	/** Should times be included in the results (i.e. ResultSetWithTimes rather than ResultSet) */
	public boolean includeTimes = false;
	
	/** Is this a profile request? */
	public boolean profile;
	
	public AnalystClusterRequest(String destinationPointsetId, String graphId, boolean profile) {
		this.destinationPointsetId = destinationPointsetId;
		this.graphId = graphId;
		this.profile = profile;
	}
	
	/** used for deserialization from JSON */
	public AnalystClusterRequest () { /* do nothing */ }
}

@@ -80,24 +80,18 @@
 %0A * 
-Marker interface
+Superclass
  for
@@ -122,16 +122,98 @@
 Worker.%0A
+ * Not abstract, so we can bind JSON to it and discover the subclass to re-parse.%0A
  * @auth
@@ -242,17 +242,8 @@
 lic 
-abstract 
 clas

Make AnalystClusterRequest concrete