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 linkpublic 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()
FeatureElement
getType
in interface FeatureElement
public long getLinkId()
FeatureElement
getLinkId
in interface FeatureElement
public long getNodeId()
FeatureElement
getNodeId
in interface FeatureElement
public double getStartPercentage()
FeatureElement
getStartPercentage
in interface FeatureElement
public double getEndPercentage()
FeatureElement
getEndPercentage
in interface FeatureElement
public double getPercentage()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
FeatureElement
clone
in interface FeatureElement
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object