public class FeatureElementImpl extends java.lang.Object implements FeatureElement
FeatureElement.FeatureElementType| Constructor and Description |
|---|
FeatureElementImpl(long nodeId)
Constructs a POINT_ON_NODE type feature element.
|
FeatureElementImpl(long linkId, double percentage)
Constructs a POINT_ON_LINK type feature element.
|
FeatureElementImpl(long linkId, double startPercentage, double endPercentage)
Constructs a LINE type feature element.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Support cloneable
|
boolean |
equals(java.lang.Object o) |
double |
getEndPercentage()
Returns the end percentage of the feature element.
|
long |
getLinkId()
Returns the ID of the link on which the feature element is defined.
|
long |
getNodeId()
Returns the ID of the node on which the feature element is defined.
|
double |
getPercentage() |
double |
getStartPercentage()
Returns the start percentage of the feature element.
|
FeatureElement.FeatureElementType |
getType()
Returns the type of the feature element.
|
java.lang.String |
toString() |
public FeatureElementImpl(long linkId,
double percentage)
linkId - ID of the linkpercentage - percentage of the point along the link
public FeatureElementImpl(long linkId,
double startPercentage,
double endPercentage)
linkId - ID of the linkstartPercentage - start percentage of the line along the linkendPercentage - end percentage of the line along the linkpublic FeatureElementImpl(long nodeId)
nodeId - ID of the node.public FeatureElement.FeatureElementType getType()
FeatureElementgetType in interface FeatureElementpublic long getLinkId()
FeatureElementgetLinkId in interface FeatureElementpublic long getNodeId()
FeatureElementgetNodeId in interface FeatureElementpublic double getStartPercentage()
FeatureElementgetStartPercentage in interface FeatureElementpublic double getEndPercentage()
FeatureElementgetEndPercentage in interface FeatureElementpublic double getPercentage()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
FeatureElementclone in interface FeatureElementclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object