nl.idgis.giserver.dynamicsegmentation
Class LineSegmentContent

java.lang.Object
  extended by nl.idgis.giserver.dynamicsegmentation.LineSegmentContent

public class LineSegmentContent
extends java.lang.Object

Content class to kept information for a line segment. The registerd information will be :

  • indentification
  • original line source.
  • new segment.
  • new feature instance. All acess will be realised by getters and setters.

    Author:
    bretelerjj

    Constructor Summary
    LineSegmentContent(org.deegree.model.feature.Feature segmentDenominatorFeature, org.deegree.model.spatialschema.LineString line, org.deegree.model.spatialschema.Position point, double distance, int nextSiblingLinePointIndex, int previousSiblingLinePointIndex)
              constructor
     
    Method Summary
     int compareTo(LineSegmentContent comparand)
              The comparation is done on registered primary key and if not available default the distance is taken.
     double getDistance()
               
     org.deegree.model.spatialschema.LineString getLine()
               
     int getNextSiblingLinePointIndex()
               
     org.deegree.model.spatialschema.Position getPoint()
              Getters and Setters
     int getPreviousSiblingLinePointIndex()
               
     java.lang.String getPrimaryKey()
               
     org.deegree.model.spatialschema.Curve getSegment()
               
     org.deegree.model.feature.Feature getSegmentDenominatorFeature()
               
     void setPrimaryKey(java.lang.String primaryKey)
               
     void setSegment(org.deegree.model.spatialschema.Curve segment)
               
     void setSegmentDenominatorFeature(org.deegree.model.feature.Feature segmentDenominatorFeature)
               
     
    Methods inherited from class java.lang.Object
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    LineSegmentContent

    public LineSegmentContent(org.deegree.model.feature.Feature segmentDenominatorFeature,
                              org.deegree.model.spatialschema.LineString line,
                              org.deegree.model.spatialschema.Position point,
                              double distance,
                              int nextSiblingLinePointIndex,
                              int previousSiblingLinePointIndex)
    constructor

    Parameters:
    segmentDenominatorFeature. -
    line - source for the segments.
    point - instingator for the segmentation.
    distance - from begin of source line
    nextSiblingLinePointIndex - range 0 ... n-1
    previousSiblingLinePointIndex - range 0 ... n-1
    Method Detail

    getPoint

    public org.deegree.model.spatialschema.Position getPoint()
    Getters and Setters


    getDistance

    public double getDistance()

    getLine

    public org.deegree.model.spatialschema.LineString getLine()

    getSegment

    public org.deegree.model.spatialschema.Curve getSegment()

    setSegment

    public void setSegment(org.deegree.model.spatialschema.Curve segment)

    getSegmentDenominatorFeature

    public org.deegree.model.feature.Feature getSegmentDenominatorFeature()

    setSegmentDenominatorFeature

    public void setSegmentDenominatorFeature(org.deegree.model.feature.Feature segmentDenominatorFeature)

    getNextSiblingLinePointIndex

    public int getNextSiblingLinePointIndex()

    getPreviousSiblingLinePointIndex

    public int getPreviousSiblingLinePointIndex()

    getPrimaryKey

    public java.lang.String getPrimaryKey()

    setPrimaryKey

    public void setPrimaryKey(java.lang.String primaryKey)

    compareTo

    public int compareTo(LineSegmentContent comparand)
    The comparation is done on registered primary key and if not available default the distance is taken.

    Parameters:
    comparand -
    Returns:
    > 0 if the comparand is greater/bigger etc.