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 NFEFeatureElementcreateCopy()Returns object copy.doublegetEndPercentage()Gets the line feature element's end point relative to its link's length.NFEFeaturegetFeature()Gets the feature element's featureNFEFeatureLayergetFeatureLayer()Gets the feature element's feature layer.java.lang.StringgetKey()Gets the feature element's key which is used to uniquely identify a feature element in an NFEModelNFENetworkElementgetNetworkElement()Gets the network element where the feature element resideslonggetSequence()Gets the feature element's sequence numberdoublegetStartPercentage()Gets the position of the feature element's relative to its link's length.FeatureElement.FeatureElementTypegetType()Gest the type of the feature element.voidsetEndPercentage(double endPercentage)Sets the line feature element's end point relative to its link's length.voidsetFeature(NFEFeature feature)Sets the feature which contains the feature elementvoidsetNetworkElement(NFENetworkElement networkElement)Sets the network element where the feature element residesvoidsetSequence(long sequence)Sets the feature element's sequence numbervoidsetStartPercentage(double startPercentage)Sets the feature element's position relative to its link's length.voidsetType(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:NFEFeatureElementGets the feature element's key which is used to uniquely identify a feature element in an NFEModel- Specified by:
getKeyin classNFEFeatureElement- Returns:
- a feature element's key
-
setFeature
public void setFeature(NFEFeature feature)
Description copied from class:NFEFeatureElementSets the feature which contains the feature element- Specified by:
setFeaturein classNFEFeatureElement- Parameters:
feature- a feature instance
-
getFeature
public NFEFeature getFeature()
Description copied from class:NFEFeatureElementGets the feature element's feature- Specified by:
getFeaturein classNFEFeatureElement- Returns:
- a feature instance
-
getFeatureLayer
public NFEFeatureLayer getFeatureLayer()
Description copied from class:NFEFeatureElementGets the feature element's feature layer. It is a shorthand for NFEFeatureElement.getFeature().getFeatureLayer()- Specified by:
getFeatureLayerin classNFEFeatureElement- Returns:
- a feature layer instance
-
setNetworkElement
public void setNetworkElement(NFENetworkElement networkElement)
Description copied from class:NFEFeatureElementSets the network element where the feature element resides- Specified by:
setNetworkElementin classNFEFeatureElement- Parameters:
networkElement- a network element instance (node or link)
-
getNetworkElement
public NFENetworkElement getNetworkElement()
Description copied from class:NFEFeatureElementGets the network element where the feature element resides- Specified by:
getNetworkElementin classNFEFeatureElement- Returns:
- a network element instance (node or link)
-
setType
public void setType(FeatureElement.FeatureElementType type)
Description copied from class:NFEFeatureElementSets the type of the feature element. This type determines if the element can be placed over a link or node.- Specified by:
setTypein classNFEFeatureElement- Parameters:
type- a feature element type
-
getType
public FeatureElement.FeatureElementType getType()
Description copied from class:NFEFeatureElementGest the type of the feature element.- Specified by:
getTypein classNFEFeatureElement- Returns:
- a feature element type
-
setStartPercentage
public void setStartPercentage(double startPercentage)
Description copied from class:NFEFeatureElementSets 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:
setStartPercentagein classNFEFeatureElement- Parameters:
startPercentage- a value between 0 and 1
-
getStartPercentage
public double getStartPercentage()
Description copied from class:NFEFeatureElementGets 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:
getStartPercentagein classNFEFeatureElement- Returns:
- a value between 0 and 1
-
setEndPercentage
public void setEndPercentage(double endPercentage)
Description copied from class:NFEFeatureElementSets the line feature element's end point relative to its link's length. This property is not used for point feature elements.- Specified by:
setEndPercentagein classNFEFeatureElement- Parameters:
endPercentage- a value between 0 and 1
-
getEndPercentage
public double getEndPercentage()
Description copied from class:NFEFeatureElementGets the line feature element's end point relative to its link's length. This property is not used for point feature elements.- Specified by:
getEndPercentagein classNFEFeatureElement- Returns:
- a value between 0 and 1
-
setSequence
public void setSequence(long sequence)
Description copied from class:NFEFeatureElementSets the feature element's sequence number- Specified by:
setSequencein classNFEFeatureElement- Parameters:
sequence- the feature element's sequence
-
getSequence
public long getSequence()
Description copied from class:NFEFeatureElementGets the feature element's sequence number- Specified by:
getSequencein classNFEFeatureElement- Returns:
- the feature element's sequence
-
createCopy
public NFEFeatureElement createCopy()
Description copied from class:NFEFeatureElementReturns object copy.- Specified by:
createCopyin classNFEFeatureElement- Returns:
- object copy
-
-