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