com.mizar.addressing.routing
Class RoutingStreetStep

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

public class RoutingStreetStep
extends java.lang.Object


Constructor Summary
RoutingStreetStep()
           
RoutingStreetStep(java.lang.String name, oracle.spatial.geometry.JGeometry geom)
          Constructs a street step
 
Method Summary
 java.lang.String getCompassDirection()
          Returns the initial compas direction for the step
 oracle.spatial.geometry.JGeometry getGeom()
          Return the street step gemeotry
 double getLength()
          Return step length
 java.lang.String getName()
          returns the street name
 Polyline getPoly()
          returns the polyline representation of the geometry.
 Line[] getSegments()
          returns the polyline segments.
 java.lang.String getTurnDirection(RoutingStreetStep step)
          Computes the turn direction from this to the given step
 void setGeom(oracle.spatial.geometry.JGeometry geom)
          Sets the geometry and computes dependant properties.
 void setLength(double length)
          Sets the step length
 void setName(java.lang.String name)
          Set the street name
 void setPoly(Polyline poly)
          Sets the polline representation of the geometry.
 void setSegments(Line[] segments)
          Sets the polyline segements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingStreetStep

public RoutingStreetStep()

RoutingStreetStep

public RoutingStreetStep(java.lang.String name,
                         oracle.spatial.geometry.JGeometry geom)
Constructs a street step

Parameters:
name - Street name
geom - street geometry
Method Detail

setGeom

public void setGeom(oracle.spatial.geometry.JGeometry geom)
Sets the geometry and computes dependant properties.

Parameters:
geom - Step geometry

getGeom

public oracle.spatial.geometry.JGeometry getGeom()
Return the street step gemeotry

Returns:

setName

public void setName(java.lang.String name)
Set the street name

Parameters:
name -

getName

public java.lang.String getName()
returns the street name

Returns:

setLength

public void setLength(double length)
Sets the step length

Parameters:
length -

getLength

public double getLength()
Return step length

Returns:

getCompassDirection

public java.lang.String getCompassDirection()
                                     throws GeometryException
Returns the initial compas direction for the step

Returns:
Throws:
GeometryException

getTurnDirection

public java.lang.String getTurnDirection(RoutingStreetStep step)
                                  throws GeometryException
Computes the turn direction from this to the given step

Parameters:
step - The step to turn to
Returns:
direction
Throws:
GeometryException

setPoly

public void setPoly(Polyline poly)
Sets the polline representation of the geometry. Internal

Parameters:
poly -

getPoly

public Polyline getPoly()
returns the polyline representation of the geometry. Internal

Returns:

setSegments

public void setSegments(Line[] segments)
Sets the polyline segements. Internal

Parameters:
segments -

getSegments

public Line[] getSegments()
returns the polyline segments. Internal

Returns: