Class NFEBasicFeatureElement
- java.lang.Object
-
- oracle.spatial.network.nfe.model.NFEBasicModelObject
-
- oracle.spatial.network.nfe.model.feature.NFEFeatureElement
-
- oracle.spatial.network.nfe.model.feature.NFEBasicFeatureElement
-
- All Implemented Interfaces:
NFEModelObject
public class NFEBasicFeatureElement extends NFEFeatureElement
The default implementation ofNFEFeatureElement
-
-
Field Summary
-
Fields inherited from class oracle.spatial.network.nfe.model.feature.NFEFeatureElement
KEY_VAL_SEPARATOR, PROP_END_PERCENTAGE, PROP_FEATURE, PROP_KEY, PROP_NETWORK_ELEMENT, PROP_SEQUENCE, PROP_START_PERCENTAGE, PROP_TYPE, UNKNOWN_KEY_VAL
-
Fields inherited from interface oracle.spatial.network.nfe.model.NFEModelObject
EFLAG_EXISTING, EFLAG_REMOVED
-
-
Constructor Summary
Constructors Constructor Description NFEBasicFeatureElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 featureNFEFeatureLayer
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 NFEModelNFENetworkElement
getNetworkElement()
Gets the network element where the feature element resideslong
getSequence()
Gets the feature element's sequence numberdouble
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 elementvoid
setNetworkElement(NFENetworkElement networkElement)
Sets the network element where the feature element residesvoid
setSequence(long sequence)
Sets the feature element's sequence numbervoid
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.-
Methods inherited from class oracle.spatial.network.nfe.model.feature.NFEFeatureElement
createKey, notifyPropertyChanged
-
Methods inherited from class oracle.spatial.network.nfe.model.NFEBasicModelObject
addEditionFlag, containsEditionFlag, getEditionFlags, removeEditionFlag, setEditionFlags
-
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Description copied from class:NFEFeatureElement
Gets the feature element's key which is used to uniquely identify a feature element in an NFEModel- Specified by:
getKey
in classNFEFeatureElement
- Returns:
- a feature element's key
-
setFeature
public void setFeature(NFEFeature feature)
Description copied from class:NFEFeatureElement
Sets the feature which contains the feature element- Specified by:
setFeature
in classNFEFeatureElement
- Parameters:
feature
- a feature instance
-
getFeature
public NFEFeature getFeature()
Description copied from class:NFEFeatureElement
Gets the feature element's feature- Specified by:
getFeature
in classNFEFeatureElement
- Returns:
- a feature instance
-
getFeatureLayer
public NFEFeatureLayer getFeatureLayer()
Description copied from class:NFEFeatureElement
Gets the feature element's feature layer. It is a shorthand for NFEFeatureElement.getFeature().getFeatureLayer()- Specified by:
getFeatureLayer
in classNFEFeatureElement
- Returns:
- a feature layer instance
-
setNetworkElement
public void setNetworkElement(NFENetworkElement networkElement)
Description copied from class:NFEFeatureElement
Sets the network element where the feature element resides- Specified by:
setNetworkElement
in classNFEFeatureElement
- Parameters:
networkElement
- a network element instance (node or link)
-
getNetworkElement
public NFENetworkElement getNetworkElement()
Description copied from class:NFEFeatureElement
Gets the network element where the feature element resides- Specified by:
getNetworkElement
in classNFEFeatureElement
- Returns:
- a network element instance (node or link)
-
setType
public void setType(FeatureElement.FeatureElementType type)
Description copied from class:NFEFeatureElement
Sets the type of the feature element. This type determines if the element can be placed over a link or node.- Specified by:
setType
in classNFEFeatureElement
- Parameters:
type
- a feature element type
-
getType
public FeatureElement.FeatureElementType getType()
Description copied from class:NFEFeatureElement
Gest the type of the feature element.- Specified by:
getType
in classNFEFeatureElement
- Returns:
- a feature element type
-
setStartPercentage
public void setStartPercentage(double startPercentage)
Description copied from class:NFEFeatureElement
Sets the feature element's position relative to its link's length. For line feature elements this value sets the start of the line. This property is not used when a feature element is set over a node- Specified by:
setStartPercentage
in classNFEFeatureElement
- Parameters:
startPercentage
- a value between 0 and 1
-
getStartPercentage
public double getStartPercentage()
Description copied from class:NFEFeatureElement
Gets the position of the feature element's relative to its link's length. This property is not used when a feature element is set over a node- Specified by:
getStartPercentage
in classNFEFeatureElement
- Returns:
- a value between 0 and 1
-
setEndPercentage
public void setEndPercentage(double endPercentage)
Description copied from class:NFEFeatureElement
Sets the line feature element's end point relative to its link's length. This property is not used for point feature elements.- Specified by:
setEndPercentage
in classNFEFeatureElement
- Parameters:
endPercentage
- a value between 0 and 1
-
getEndPercentage
public double getEndPercentage()
Description copied from class:NFEFeatureElement
Gets the line feature element's end point relative to its link's length. This property is not used for point feature elements.- Specified by:
getEndPercentage
in classNFEFeatureElement
- Returns:
- a value between 0 and 1
-
setSequence
public void setSequence(long sequence)
Description copied from class:NFEFeatureElement
Sets the feature element's sequence number- Specified by:
setSequence
in classNFEFeatureElement
- Parameters:
sequence
- the feature element's sequence
-
getSequence
public long getSequence()
Description copied from class:NFEFeatureElement
Gets the feature element's sequence number- Specified by:
getSequence
in classNFEFeatureElement
- Returns:
- the feature element's sequence
-
createCopy
public NFEFeatureElement createCopy()
Description copied from class:NFEFeatureElement
Returns object copy.- Specified by:
createCopy
in classNFEFeatureElement
- Returns:
- object copy
-
-