com.mizar.addressing.routing
Class RoutingStop

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

public class RoutingStop
extends java.lang.Object

A routing stop, a start or end location.


Constructor Summary
RoutingStop()
           
RoutingStop(java.lang.String address, oracle.spatial.geometry.JGeometry geom)
          Constructs a RoutingStop
 
Method Summary
 java.lang.String getAddress()
          freturns the stop address
 double[] getCenter()
          Computes center point of a Routing Stop.
 oracle.spatial.network.Link[] getClosestLinks()
          Returns the closest links to the stop.
 Polyline getEndGeom()
          Computes geometry for the ending of the route
 oracle.spatial.geometry.JGeometry getGeom()
          returns the stop geometry
 double[] getNodeLocation()
          Gets the node location (projected onto edge).
 Polyline[] getSplitPolylines()
          Returns the split polylines (edge split at nodeLocaion).
 Polyline getStartGeom()
          Computes geometry for the begining of the route
 oracle.spatial.network.Node getStopNode()
          Returns the computed closest node to the stop.
 void setAddress(java.lang.String address)
          Sets the stop aggress
 void setClosestLinks(oracle.spatial.network.Link[] closestLinks)
          Sets the closest links to the stop.
 void setGeom(oracle.spatial.geometry.JGeometry geom)
          Sets the start geometry
 void setNodeLocation(double[] nodeLocation)
          Sets the node location (projected).
 void setSplitPolylines(Polyline[] splitPolylines)
          Sets the split polylines (edge split at nodeLocaion).
 void setStopNode(oracle.spatial.network.Node closestNode)
          Sets the closest node to the given stop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingStop

public RoutingStop()

RoutingStop

public RoutingStop(java.lang.String address,
                   oracle.spatial.geometry.JGeometry geom)
Constructs a RoutingStop

Parameters:
address - Parcel address
geom - Parcel centroid
Method Detail

setAddress

public void setAddress(java.lang.String address)
Sets the stop aggress

Parameters:
address -

getAddress

public java.lang.String getAddress()
freturns the stop address

Returns:

setGeom

public void setGeom(oracle.spatial.geometry.JGeometry geom)
Sets the start geometry

Parameters:
geom -

getGeom

public oracle.spatial.geometry.JGeometry getGeom()
returns the stop geometry

Returns:

setStopNode

public void setStopNode(oracle.spatial.network.Node closestNode)
Sets the closest node to the given stop. Internal

Parameters:
closestNode -

getStopNode

public oracle.spatial.network.Node getStopNode()
Returns the computed closest node to the stop. Internal

Returns:

setClosestLinks

public void setClosestLinks(oracle.spatial.network.Link[] closestLinks)
Sets the closest links to the stop. Internal

Parameters:
closestLinks -

getClosestLinks

public oracle.spatial.network.Link[] getClosestLinks()
Returns the closest links to the stop. Internal

Returns:

setNodeLocation

public void setNodeLocation(double[] nodeLocation)
Sets the node location (projected). Internal

Parameters:
nodeLocation -

getNodeLocation

public double[] getNodeLocation()
Gets the node location (projected onto edge). Internal

Returns:

setSplitPolylines

public void setSplitPolylines(Polyline[] splitPolylines)
Sets the split polylines (edge split at nodeLocaion). Internal

Parameters:
splitPolylines -

getSplitPolylines

public Polyline[] getSplitPolylines()
Returns the split polylines (edge split at nodeLocaion). Internal

Returns:

getStartGeom

public Polyline getStartGeom()
                      throws GeometryException
Computes geometry for the begining of the route

Returns:
Throws:
GeometryException

getEndGeom

public Polyline getEndGeom()
                    throws GeometryException
Computes geometry for the ending of the route

Returns:
Throws:
GeometryException

getCenter

public double[] getCenter()
Computes center point of a Routing Stop.

Returns:
array represention of Stop's center