public class NFEBasicFeatureElement extends NFEFeatureElement
NFEFeatureElement
KEY_VAL_SEPARATOR, PROP_END_PERCENTAGE, PROP_FEATURE, PROP_KEY, PROP_NETWORK_ELEMENT, PROP_SEQUENCE, PROP_START_PERCENTAGE, PROP_TYPE, UNKNOWN_KEY_VAL
EFLAG_EXISTING, EFLAG_REMOVED
Constructor and Description |
---|
NFEBasicFeatureElement() |
Modifier and Type | Method and Description |
---|---|
NFEFeatureElement |
createCopy()
Returns object copy.
|
double |
getEndPercentage()
Gets the line feature element's end point relative to its link's length.
|
NFEFeature |
getFeature()
Gets the feature element's feature
|
NFEFeatureLayer |
getFeatureLayer()
Gets the feature element's feature layer.
|
java.lang.String |
getKey()
Gets the feature element's key which is used to uniquely identify a feature element in an NFEModel
|
NFENetworkElement |
getNetworkElement()
Gets the network element where the feature element resides
|
long |
getSequence()
Gets the feature element's sequence number
|
double |
getStartPercentage()
Gets the position of the feature element's relative to its link's length.
|
FeatureElement.FeatureElementType |
getType()
Gest the type of the feature element.
|
void |
setEndPercentage(double endPercentage)
Sets the line feature element's end point relative to its link's length.
|
void |
setFeature(NFEFeature feature)
Sets the feature which contains the feature element
|
void |
setNetworkElement(NFENetworkElement networkElement)
Sets the network element where the feature element resides
|
void |
setSequence(long sequence)
Sets the feature element's sequence number
|
void |
setStartPercentage(double startPercentage)
Sets the feature element's position relative to its link's length.
|
void |
setType(FeatureElement.FeatureElementType type)
Sets the type of the feature element.
|
createKey
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
public java.lang.String getKey()
NFEFeatureElement
getKey
in class NFEFeatureElement
public void setFeature(NFEFeature feature)
NFEFeatureElement
setFeature
in class NFEFeatureElement
feature
- a feature instancepublic NFEFeature getFeature()
NFEFeatureElement
getFeature
in class NFEFeatureElement
public NFEFeatureLayer getFeatureLayer()
NFEFeatureElement
getFeatureLayer
in class NFEFeatureElement
public void setNetworkElement(NFENetworkElement networkElement)
NFEFeatureElement
setNetworkElement
in class NFEFeatureElement
networkElement
- a network element instance (node or link)public NFENetworkElement getNetworkElement()
NFEFeatureElement
getNetworkElement
in class NFEFeatureElement
public void setType(FeatureElement.FeatureElementType type)
NFEFeatureElement
setType
in class NFEFeatureElement
type
- a feature element typepublic FeatureElement.FeatureElementType getType()
NFEFeatureElement
getType
in class NFEFeatureElement
public void setStartPercentage(double startPercentage)
NFEFeatureElement
setStartPercentage
in class NFEFeatureElement
startPercentage
- a value between 0 and 1public double getStartPercentage()
NFEFeatureElement
getStartPercentage
in class NFEFeatureElement
public void setEndPercentage(double endPercentage)
NFEFeatureElement
setEndPercentage
in class NFEFeatureElement
endPercentage
- a value between 0 and 1public double getEndPercentage()
NFEFeatureElement
getEndPercentage
in class NFEFeatureElement
public void setSequence(long sequence)
NFEFeatureElement
setSequence
in class NFEFeatureElement
sequence
- the feature element's sequencepublic long getSequence()
NFEFeatureElement
getSequence
in class NFEFeatureElement
public NFEFeatureElement createCopy()
NFEFeatureElement
createCopy
in class NFEFeatureElement