com.mizar.addressing.routing
Class RoutingRequest

java.lang.Object
  extended by com.mizar.addressing.routing.RoutingRequest

public class RoutingRequest
extends java.lang.Object

Class for holding information about a route. Contains the request stops and the steps after a route is calculated


Constructor Summary
RoutingRequest()
           
 
Method Summary
 void addStep(RoutingStop start, RoutingStop end, double[] ords)
           
 void addStep(RoutingStop start, RoutingStop end, oracle.spatial.network.Path path)
          Adds a step to the route
 void addStop(java.lang.String address, oracle.spatial.geometry.JGeometry geom)
          Adds a stop to the request.
 int getRouteType()
          Returns the route type, fastest or shortest
 java.util.ArrayList<RoutingStep> getSteps()
          Returns a list of steps
 java.util.ArrayList<RoutingStop> getStops()
          Returns the list of stops.
static RoutingRequest getTestRequest()
          Returns the test request, gneerated from navteq data.
 boolean isBackToStart()
          Returns the backToStart flag.
 void setBackToStart(boolean backToStart)
          Set the back to start flag.
static double[] setPoint(double[] pt, double x, double y)
           
 void setRouteType(int routeType)
          Sets the route type, fastest or shortest
 void setStops(java.util.ArrayList<RoutingStop> stops)
          Sets the stop list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingRequest

public RoutingRequest()
Method Detail

addStep

public void addStep(RoutingStop start,
                    RoutingStop end,
                    oracle.spatial.network.Path path)
Adds a step to the route

Parameters:
start - Begining stop
end - Ending stop
path - Path from start to end

addStep

public void addStep(RoutingStop start,
                    RoutingStop end,
                    double[] ords)

addStop

public void addStop(java.lang.String address,
                    oracle.spatial.geometry.JGeometry geom)
Adds a stop to the request.

Parameters:
address - Starting address (minimally street name)
geom - Parcel centroid

getStops

public java.util.ArrayList<RoutingStop> getStops()
Returns the list of stops.

Returns:
the list of stops

setRouteType

public void setRouteType(int routeType)
Sets the route type, fastest or shortest

Parameters:
routeType -

getRouteType

public int getRouteType()
Returns the route type, fastest or shortest

Returns:

setBackToStart

public void setBackToStart(boolean backToStart)
Set the back to start flag.

Parameters:
backToStart -

isBackToStart

public boolean isBackToStart()
Returns the backToStart flag.

Returns:

getTestRequest

public static RoutingRequest getTestRequest()
Returns the test request, gneerated from navteq data.

Returns:

setPoint

public static double[] setPoint(double[] pt,
                                double x,
                                double y)

getSteps

public java.util.ArrayList<RoutingStep> getSteps()
Returns a list of steps

Returns:
a list of steps

setStops

public void setStops(java.util.ArrayList<RoutingStop> stops)
Sets the stop list.

Parameters:
stops -