com.mizar.uscensus.maftiger
Class EdgesBean

java.lang.Object
  extended by com.mizar.persistence.jpa.beans.GenericBean
      extended by com.mizar.persistence.jpa.beans.GeometryBean
          extended by com.mizar.uscensus.maftiger.EdgesBean
All Implemented Interfaces:
JPAGeometryInterface, JPAInterface, java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
EdgesRow

@Entity
public class EdgesBean
extends GeometryBean

See Also:
Serialized Form

Nested Class Summary
static class EdgesBean.AddressSide
           
 
Field Summary
 
Fields inherited from class com.mizar.persistence.jpa.beans.GeometryBean
searchTolerance, sridPrecision, wktLocation, wktMBR, wktShape
 
Fields inherited from class com.mizar.persistence.jpa.beans.GenericBean
_logger, DELETE, EDIT, NEW, READ, serialVersionUID
 
Constructor Summary
EdgesBean()
           
 
Method Summary
 oracle.spatial.geometry.JGeometry geocode(long number, double offset)
          Geocodes a street address
 int getAddressCount()
           
 java.util.List<AddrBean> getAddresses()
           
 long[] getAddressRange(boolean odd)
          Returns the odd or even address range of the Edge.
 java.lang.Boolean getArtificialPath()
           
 java.lang.String getArtpath()
           
 java.util.List<County10Bean> getCounties()
           
 java.lang.String getCounty()
           
 java.lang.String getCountyState()
           
 java.lang.String getDeckedroad()
           
 java.lang.Boolean getDeckedRoad()
           
 java.lang.Boolean getDividedRoad()
           
 java.lang.String getDivroad()
           
 java.lang.String getExttyp()
           
 java.lang.String getFeatcat()
           
 java.util.List<FeatnamesBean> getFeatnames()
           
 NodesBean getFromNode()
           
 java.lang.String getFullname()
           
 java.lang.String getGcseflg()
           
 oracle.spatial.geometry.JGeometry getGeom()
          Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table.
 java.lang.Long getHighAddress()
           
 java.lang.String getHydroflg()
           
 java.lang.Boolean getHydrographicPersistence()
           
 java.lang.Boolean getHydrology()
           
 FacesBean getLeftFace()
           
 java.lang.Long getLeftHighAddress()
           
 java.lang.Long getLeftLowAddress()
           
 java.lang.Boolean getLeftOffset()
           
 java.lang.String getLfromadd()
           
 java.lang.Long getLowAddress()
           
 java.lang.String getLtoadd()
           
 MtfccBean getMtfcc()
           
 java.lang.String getOffsetl()
           
 oracle.spatial.geometry.JGeometry getOffsetMidPoint(EdgesBean.AddressSide side, double offset)
          Gets the JGeometry Point of an Edge's midpoint
 java.lang.String getOffsetr()
           
 java.lang.String getOlfflg()
           
 java.lang.Boolean getOtherLinearFeature()
           
 java.lang.String getPassflg()
           
 java.lang.String getPersist()
           
 oracle.spatial.geometry.JGeometry getPointToSide(EdgesBean.AddressSide side, double distanceAlong, double offset)
          Returns a JGeometry Point of a given distance along a street side.
 java.lang.Long getPrimaryKeyValue()
          NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)
 java.lang.String getRailflg()
           
 java.lang.Boolean getRailroad()
           
 java.lang.String getRfromadd()
           
 FacesBean getRightFace()
           
 java.lang.Long getRightHighAddress()
           
 java.lang.Long getRightLowAddress()
           
 java.lang.Boolean getRightOffset()
           
 java.lang.Boolean getRoad()
           
 java.lang.String getRoadflg()
           
 java.lang.String getRouteNumber()
           
 java.lang.Long getRouteType()
           
 java.lang.String getRtoadd()
           
 java.lang.Boolean getShortLine()
           
 java.lang.String getSmid()
           
 java.lang.Boolean getSpecialPassage()
           
 java.lang.String getState()
           
 java.lang.String getStateUsps()
           
 java.lang.Long getTlid()
           
 java.lang.Long getTnidf()
           
 java.lang.Long getTnidt()
           
 NodesBean getToNode()
           
 java.lang.String getTtyp()
           
 java.lang.String getUspsname()
           
 java.lang.String getUspsnameDir()
           
 java.lang.String getUspsnameSoundex()
           
 java.lang.String getUspsnameStreet()
           
 java.lang.String getUspsnameType()
           
 java.lang.String getZipl()
           
 java.lang.String getZipr()
           
 boolean hasAddresses()
           
 boolean hasAddresses(boolean left)
           
 java.lang.Boolean isLeftOdd()
           
 java.lang.Boolean isRightOdd()
           
 double[] pointAlong(long number)
          Returns address's point along the Edge.
 double relativeAddress(long number)
          Get the ratio along the edge that a perfectly interpolated address would appear.
 void reverseAddressOrder()
           
 void setAddresses(java.util.List<AddrBean> addresses)
           
 void setArtificialPath(java.lang.Boolean boolArtpath)
           
 void setArtpath(java.lang.String artpath)
           
 void setCounties(java.util.List<County10Bean> counties)
           
 void setDeckedRoad(java.lang.Boolean boolDeckedroad)
           
 void setDeckedroad(java.lang.String deckedroad)
           
 void setDividedRoad(java.lang.Boolean boolDivroad)
           
 void setDivroad(java.lang.String divroad)
           
 void setExttyp(java.lang.String exttyp)
           
 void setFeatcat(java.lang.String featcat)
           
 void setFeatnames(java.util.List<FeatnamesBean> featnames)
           
 void setFromNode(NodesBean fromNode)
           
 void setFullname(java.lang.String fullname)
           
 void setGcseflg(java.lang.String gcseflg)
           
 void setGeom(oracle.spatial.geometry.JGeometry geom)
           
 void setHydroflg(java.lang.String hydroflg)
           
 void setHydrographicPersistence(java.lang.Boolean hydrographicPersistence)
           
 void setHydrology(java.lang.Boolean boolHydroflg)
           
 void setLeftFace(FacesBean faces)
           
 void setLeftOffset(java.lang.Boolean leftOffset)
           
 void setLfromadd(java.lang.String lfromadd)
           
 void setLtoadd(java.lang.String ltoadd)
           
 void setMtfcc(MtfccBean mtfcc)
           
 void setOffsetl(java.lang.String offsetl)
           
 void setOffsetr(java.lang.String offsetr)
           
 void setOlfflg(java.lang.String olfflg)
           
 void setOtherLinearFeature(java.lang.Boolean boolOlfflg)
           
 void setPassflg(java.lang.String passflg)
           
 void setPersist(java.lang.String persist)
           
 void setRailflg(java.lang.String railflg)
           
 void setRailroad(java.lang.Boolean boolRailflg)
           
 void setRfromadd(java.lang.String rfromadd)
           
 void setRightFace(FacesBean faces)
           
 void setRightHighAddress(java.lang.Long rightHighAddress)
           
 void setRightOffset(java.lang.Boolean rightOffset)
           
 void setRoad(java.lang.Boolean boolRoadflg)
           
 void setRoadflg(java.lang.String roadflg)
           
 void setRouteNumber(java.lang.String routeNumber)
           
 void setRouteType(java.lang.Long routeType)
           
 void setRtoadd(java.lang.String rtoadd)
           
 void setShortLine(java.lang.Boolean shortLine)
           
 void setSmid(java.lang.String smid)
           
 void setSpecialPassage(java.lang.Boolean boolPassflg)
           
 void setTlid(java.lang.Long tlid)
           
 void setTnidf(java.lang.Long tnidf)
           
 void setTnidt(java.lang.Long tnidt)
           
 void setToNode(NodesBean toNode)
           
 void setTtyp(java.lang.String ttyp)
           
 void setUspsname(java.lang.String uspsname)
           
 void setZipl(java.lang.String zipl)
           
 void setZipr(java.lang.String zipr)
           
 EdgesBean.AddressSide sideOfStreet(long number)
          The side of the street that a specific house number occurs.
 boolean withinRange(long number)
          Determines if an address number is within range of the Edge.
 
Methods inherited from class com.mizar.persistence.jpa.beans.GeometryBean
getArea, getBasicGeometryType, getGeomDimensions, getGeomNumPoints, getGeomType, getGType, getHeight, getLength, getRange, getSearchTolerance, getSrid, getSridPrecision, getWidth, getWktLocation, getWktMBR, getWktShape, isGeometryExtant, setArea, setSearchTolerance, setSridPrecision, setWktLocation, setWktShape
 
Methods inherited from class com.mizar.persistence.jpa.beans.GenericBean
compareTo, equals, getDELETE, getEDIT, getEntityState, getEntityStateLabel, getLogger, getNEW, getREAD, hashCode, isEditable, isNew, setEditable, setEntityState, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdgesBean

public EdgesBean()
Method Detail

getPrimaryKeyValue

public java.lang.Long getPrimaryKeyValue()
Description copied from class: GenericBean

NOTE: If an implementing bean expects to be extended by a RowInterface in a often-used Table, you should override this method in order to avoid the overheads associated with the reflective code in JPAUtils.getPrimaryKeyValue(this)

 public Object getPrimaryKeyValue(){
   return getProperty();
 }
 

In the absence of an overriding method, this method provides a generic method to get the value of the primary key. This is especially useful for calls to em.find(object) from within abstract classes

Overrides:
getPrimaryKeyValue in class GenericBean
Returns:
JPAUtils#getPrimaryKeyValue(this)
See Also:
RowInterface.getPrimaryKeyValue()

getTlid

public java.lang.Long getTlid()

setTlid

public void setTlid(java.lang.Long tlid)

getArtpath

public java.lang.String getArtpath()

setArtpath

public void setArtpath(java.lang.String artpath)

getDeckedroad

public java.lang.String getDeckedroad()

setDeckedroad

public void setDeckedroad(java.lang.String deckedroad)

getDivroad

public java.lang.String getDivroad()

setDivroad

public void setDivroad(java.lang.String divroad)

getExttyp

public java.lang.String getExttyp()

setExttyp

public void setExttyp(java.lang.String exttyp)

getFeatcat

public java.lang.String getFeatcat()

setFeatcat

public void setFeatcat(java.lang.String featcat)

getFullname

public java.lang.String getFullname()

setFullname

public void setFullname(java.lang.String fullname)

getHydroflg

public java.lang.String getHydroflg()

setHydroflg

public void setHydroflg(java.lang.String hydroflg)

reverseAddressOrder

public void reverseAddressOrder()

hasAddresses

public boolean hasAddresses()
Returns:
true if either left or right addresses exist

hasAddresses

public boolean hasAddresses(boolean left)
Parameters:
left - if true check left addresses, else check right addresses
Returns:

getLfromadd

public java.lang.String getLfromadd()

setLfromadd

public void setLfromadd(java.lang.String lfromadd)

getLtoadd

public java.lang.String getLtoadd()

setLtoadd

public void setLtoadd(java.lang.String ltoadd)

isLeftOdd

public java.lang.Boolean isLeftOdd()

isRightOdd

public java.lang.Boolean isRightOdd()

geocode

public oracle.spatial.geometry.JGeometry geocode(long number,
                                                 double offset)
                                          throws GeometryException
Geocodes a street address

Parameters:
number - Address number
offset - Offset from centerline
Returns:
Geocode of Address along the Edge.
Throws:
GeometryException

getPointToSide

public oracle.spatial.geometry.JGeometry getPointToSide(EdgesBean.AddressSide side,
                                                        double distanceAlong,
                                                        double offset)
                                                 throws GeometryException
Returns a JGeometry Point of a given distance along a street side.

Parameters:
side - Left or Right side of a street.
distanceAlong -
offset - Offset from centerline
Returns:
JGeometry Point of a distance along a street side.
Throws:
GeometryException

getOffsetMidPoint

public oracle.spatial.geometry.JGeometry getOffsetMidPoint(EdgesBean.AddressSide side,
                                                           double offset)
                                                    throws GeometryException
Gets the JGeometry Point of an Edge's midpoint

Parameters:
side - Left or right side of a Street.
offset - Offset from centerline.
Returns:
Throws:
GeometryException

pointAlong

public double[] pointAlong(long number)
                    throws GeometryException
Returns address's point along the Edge.

Parameters:
number - Address number
Returns:
Array presenting the address's point along the Edge. Returns Null if Edge's length is zero or relative distance can't be determined.
Throws:
GeometryException

relativeAddress

public double relativeAddress(long number)
Get the ratio along the edge that a perfectly interpolated address would appear. For instance, if the number is 25 and the address range on the odd range of the edge is 1-99 then 25 would be just about 25% along the line. If the address range numbers run counter to the geometry direction, i.e., from 99-1 then the result would be about 75% (the inverse).

Parameters:
number -
Returns:

getAddressRange

public long[] getAddressRange(boolean odd)
Returns the odd or even address range of the Edge.

Parameters:
odd - Boolean switch to determine odd or even address numbers to get. Use true to get odd and false to get even.
Returns:
Two element array representing lower and upper end of the Edge's address range. Return null if it can't determine which side of Edge has odd addresses.

withinRange

public boolean withinRange(long number)
Determines if an address number is within range of the Edge.

Parameters:
number - Address number.
Returns:
True if address number is within range. False if address not in range or if Edge's leftOdd is null.

getLeftLowAddress

public java.lang.Long getLeftLowAddress()

getLeftHighAddress

public java.lang.Long getLeftHighAddress()

getRfromadd

public java.lang.String getRfromadd()

setRfromadd

public void setRfromadd(java.lang.String rfromadd)

getRtoadd

public java.lang.String getRtoadd()

setRtoadd

public void setRtoadd(java.lang.String rtoadd)

getRightLowAddress

public java.lang.Long getRightLowAddress()

getRightHighAddress

public java.lang.Long getRightHighAddress()

getLowAddress

public java.lang.Long getLowAddress()

getHighAddress

public java.lang.Long getHighAddress()

getMtfcc

public MtfccBean getMtfcc()

setMtfcc

public void setMtfcc(MtfccBean mtfcc)

getOlfflg

public java.lang.String getOlfflg()

setOlfflg

public void setOlfflg(java.lang.String olfflg)

getPassflg

public java.lang.String getPassflg()

setPassflg

public void setPassflg(java.lang.String passflg)

getRailflg

public java.lang.String getRailflg()

setRailflg

public void setRailflg(java.lang.String railflg)

getRoadflg

public java.lang.String getRoadflg()

setRoadflg

public void setRoadflg(java.lang.String roadflg)

setOffsetl

public void setOffsetl(java.lang.String offsetl)

getOffsetl

public java.lang.String getOffsetl()

setOffsetr

public void setOffsetr(java.lang.String offsetr)

getOffsetr

public java.lang.String getOffsetr()

setPersist

public void setPersist(java.lang.String persist)

getPersist

public java.lang.String getPersist()

setGcseflg

public void setGcseflg(java.lang.String gcseflg)

getGcseflg

public java.lang.String getGcseflg()

getSmid

public java.lang.String getSmid()

setSmid

public void setSmid(java.lang.String smid)

getTtyp

public java.lang.String getTtyp()

setTtyp

public void setTtyp(java.lang.String ttyp)

getZipl

public java.lang.String getZipl()

setZipl

public void setZipl(java.lang.String zipl)

getZipr

public java.lang.String getZipr()

setZipr

public void setZipr(java.lang.String zipr)

getLeftFace

public FacesBean getLeftFace()

setLeftFace

public void setLeftFace(FacesBean faces)

getRightFace

public FacesBean getRightFace()

setRightFace

public void setRightFace(FacesBean faces)

getGeom

public oracle.spatial.geometry.JGeometry getGeom()
Description copied from class: GeometryBean
Entity classes implementing GeometryBean should have at least one SDO_GEOMETRY column in their associated table. It is entirely possible for an Entity to support more than one SDO_GEOMETRY column but one must be designated and the default or nominal object and a getter method called getGeom() must be mapped to it.

Specified by:
getGeom in class GeometryBean
Returns:
the principal SDO_GEOMETRY column

setGeom

public void setGeom(oracle.spatial.geometry.JGeometry geom)
Specified by:
setGeom in class GeometryBean

setAddresses

public void setAddresses(java.util.List<AddrBean> addresses)

getAddresses

public java.util.List<AddrBean> getAddresses()

getAddressCount

public int getAddressCount()

setUspsname

public void setUspsname(java.lang.String uspsname)

getUspsname

public java.lang.String getUspsname()

getUspsnameSoundex

public java.lang.String getUspsnameSoundex()

getUspsnameStreet

public java.lang.String getUspsnameStreet()

getUspsnameType

public java.lang.String getUspsnameType()

getUspsnameDir

public java.lang.String getUspsnameDir()

sideOfStreet

public EdgesBean.AddressSide sideOfStreet(long number)
The side of the street that a specific house number occurs. This is made a little more interesting by the fact that either the right or the left side of the street may have a null address range. So if the number to test is 11 and the left side of the street is determined to be even, that does not guarantee that the right side is odd. It just means that the right side might be odd or might be undefined.

Parameters:
number -
Returns:

setRightHighAddress

public void setRightHighAddress(java.lang.Long rightHighAddress)

setArtificialPath

public void setArtificialPath(java.lang.Boolean boolArtpath)

getArtificialPath

public java.lang.Boolean getArtificialPath()

setDeckedRoad

public void setDeckedRoad(java.lang.Boolean boolDeckedroad)

getDeckedRoad

public java.lang.Boolean getDeckedRoad()

setDividedRoad

public void setDividedRoad(java.lang.Boolean boolDivroad)

getDividedRoad

public java.lang.Boolean getDividedRoad()

setHydrology

public void setHydrology(java.lang.Boolean boolHydroflg)

getHydrology

public java.lang.Boolean getHydrology()

setOtherLinearFeature

public void setOtherLinearFeature(java.lang.Boolean boolOlfflg)

getOtherLinearFeature

public java.lang.Boolean getOtherLinearFeature()

setSpecialPassage

public void setSpecialPassage(java.lang.Boolean boolPassflg)

getSpecialPassage

public java.lang.Boolean getSpecialPassage()

setRailroad

public void setRailroad(java.lang.Boolean boolRailflg)

getRailroad

public java.lang.Boolean getRailroad()

setRoad

public void setRoad(java.lang.Boolean boolRoadflg)

getRoad

public java.lang.Boolean getRoad()

setHydrographicPersistence

public void setHydrographicPersistence(java.lang.Boolean hydrographicPersistence)

getHydrographicPersistence

public java.lang.Boolean getHydrographicPersistence()

setShortLine

public void setShortLine(java.lang.Boolean shortLine)

getShortLine

public java.lang.Boolean getShortLine()

setLeftOffset

public void setLeftOffset(java.lang.Boolean leftOffset)

getLeftOffset

public java.lang.Boolean getLeftOffset()

setRightOffset

public void setRightOffset(java.lang.Boolean rightOffset)

getRightOffset

public java.lang.Boolean getRightOffset()

setTnidf

public void setTnidf(java.lang.Long tnidf)

getTnidf

public java.lang.Long getTnidf()

setTnidt

public void setTnidt(java.lang.Long tnidt)

getTnidt

public java.lang.Long getTnidt()

setRouteType

public void setRouteType(java.lang.Long routeType)

getRouteType

public java.lang.Long getRouteType()

setRouteNumber

public void setRouteNumber(java.lang.String routeNumber)

getRouteNumber

public java.lang.String getRouteNumber()

setToNode

public void setToNode(NodesBean toNode)

getToNode

public NodesBean getToNode()

setFromNode

public void setFromNode(NodesBean fromNode)

getFromNode

public NodesBean getFromNode()

setCounties

public void setCounties(java.util.List<County10Bean> counties)

getCounties

public java.util.List<County10Bean> getCounties()

getCounty

public java.lang.String getCounty()

getCountyState

public java.lang.String getCountyState()

getState

public java.lang.String getState()

getStateUsps

public java.lang.String getStateUsps()

setFeatnames

public void setFeatnames(java.util.List<FeatnamesBean> featnames)

getFeatnames

public java.util.List<FeatnamesBean> getFeatnames()