com.gisgraphy.domain.valueobject
Class StreetDistance

java.lang.Object
  extended by com.gisgraphy.domain.valueobject.StreetDistance

public class StreetDistance
extends java.lang.Object

Value object that represents a StreetOSM with a distance The JAXB node name is Constants.STREETDISTANCE_JAXB_NAME

Author:
David Masclet

Nested Class Summary
static class StreetDistance.StreetDistanceBuilder
           
 
Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
StreetDistance()
          Default Constructor needed by cglib
 
Method Summary
 java.lang.String getCountryCode()
           
 java.lang.Double getDistance()
           
 java.lang.Long getGid()
           
 java.lang.Double getLat()
           
 java.lang.Double getLength()
           
 java.lang.Double getLng()
           
 com.vividsolutions.jts.geom.Point getLocation()
           
 java.lang.String getName()
           
 java.lang.Boolean getOneWay()
           
 StreetType getStreetType()
           
 void updateFields()
          update the calculated fields (lat,lng,...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

StreetDistance

public StreetDistance()
Default Constructor needed by cglib

Method Detail

updateFields

public void updateFields()
update the calculated fields (lat,lng,...)


getName

public java.lang.String getName()
Returns:
the name

getDistance

public java.lang.Double getDistance()
Returns:
the distance

getGid

public java.lang.Long getGid()
Returns:
the gid

getStreetType

public StreetType getStreetType()
Returns:
the streetType

getOneWay

public java.lang.Boolean getOneWay()
Returns:
the oneWay

getCountryCode

public java.lang.String getCountryCode()
Returns:
the countryCode

getLength

public java.lang.Double getLength()
Returns:
the length

getLat

public java.lang.Double getLat()
Returns:
the lat

getLng

public java.lang.Double getLng()
Returns:
the lng

getLocation

public com.vividsolutions.jts.geom.Point getLocation()
Returns:
the location


Copyright © 2010. All Rights Reserved.