public interface NFEModel
Modifier and Type | Method and Description |
---|---|
void |
addFeatureLayer(NFEFeatureLayer featureLayer)
Adds a feature layer to the model.
|
void |
addLoadedArea(java.awt.geom.Area area)
Adds an area loaded.
|
void |
addModelListener(NFEModelListener listener)
Adds a listener to the model.
|
NFEFeatureLayer |
getAnalysisLayer()
Gets a feature layer containing the paths resulting from analysis (if any)
|
NFEEventDispatcher<NFEModelListener> |
getDispatcher()
Gets the event dispatcher used by the model.
|
NFEEditionManager |
getEditionManager()
Gets the edition manager used by the current model
|
NFEEditionMode |
getEditionMode()
Gets the edition mode of the current model.
|
int |
getFeatureElementsCount(NFENetworkElement networkElement)
Gets the number of feature elements associated to a network element
|
java.util.Collection<NFEFeatureElement> |
getFeatureElementsOnNetworkElement(NFENetworkElement networkElement)
Gets all the feature elements associated to a network element
|
java.util.Collection<NFEFeatureElement> |
getFeatureElementsOnNetworkElement(NFENetworkElement networkElement, int hierarchyLevel)
Gets all the feature elements with the given hierarchy level associated to a network element
|
NFEFeatureLayer |
getFeatureLayer(long featureLayerId)
Gets a model's feature layer by its id.
|
NFEFeatureLayer |
getFeatureLayer(java.lang.String featureLayerName)
Gets a model's feature layer by its name
|
java.util.Collection<NFEFeatureLayer> |
getFeatureLayers()
Gets the feature layers of the current model.
|
java.util.Collection<NFEFeature> |
getFeaturesOnNetworkElement(NFENetworkElement networkElement)
Gets all the features containing feature elements associated to the specified network element
|
NFEGeometryDescriptor |
getGeometryDescriptor()
Gets the geometry descriptor of the current model.
|
long |
getId()
Gets the ID of the model.
|
NFEIdManager |
getIdManager()
Gets the id manager used by the current model
|
java.awt.geom.Area |
getLoadedArea()
Gets the area currently loaded model's content.
|
NFEManipulator |
getManipulator()
Gets the manipulator instance which helps to perform some trivial feature-network operations over the model's content
|
NFEModelMetadata |
getMetadata()
Gets the metadata of the current model.
|
NFEModelObjectFactory |
getModelObjectFactory()
Gets the model object factory instance used by the current model.
|
java.lang.String |
getName()
Gets the name of the model.
|
NFENetwork |
getNetwork()
Gets the current model's network
|
NFERulesModel |
getRulesModel()
Gets the rules model associated to the current model.
|
NFEIOServiceProvider |
getServiceProvider()
Gets the service provider used by the model to perform IO operations
|
NFESpatialModel |
getSpatialModel()
Gets the spatial model used by the current model to keep track of the spatial positions of its content (network elements and feature elements)
|
NFEWorkspaceInfo |
getWorkspaceInfo()
Gets the workspace manager related data associated to the current model
|
NFEFeatureLayer |
removeFeatureLayer(long featureLayerId)
Removes a feature layer with specified from the model
|
void |
removeModelListener(NFEModelListener listener)
Removes a listener from the model.
|
void |
setAnalysisLayer(NFEFeatureLayer analysisFeatureLayer)
Sets a feature layer which contains paths from analysis.
|
void |
setEditionManager(NFEEditionManager em)
Sets the edition managaer to be used by the current model to track changes made to the model's content.
|
void |
setEventDispatcher(NFEEventDispatcher<NFEModelListener> eventDispatcher)
Sets the event dispatcher used by the model to fire model events.
|
void |
setIdManager(NFEIdManager idManager)
Sets the id manager used by the current model to assign ids to newly created objects
|
void |
setMetadata(NFEModelMetadata metadata)
Sets the metadata of the model.
|
void |
setModelObjectFactory(NFEModelObjectFactory moFactory)
Sets the model object factory which will be used by the model to create new instances of model objects such as nodes, links, features and all the elements that are associated to the model.
|
void |
setNetwork(NFENetwork network)
Sets a network to the current model.
|
void |
setServiceProvider(NFEIOServiceProvider sp)
Sets the service provider to the current model.
|
void |
setWorkspaceInfo(NFEWorkspaceInfo workspace)
Sets the workspace manager configuration used by the model for IO operations
|
void setMetadata(NFEModelMetadata metadata)
metadata
- The current model's metedataNFEModelMetadata getMetadata()
long getId()
java.lang.String getName()
NFEEditionMode getEditionMode()
NFEGeometryDescriptor getGeometryDescriptor()
void setWorkspaceInfo(NFEWorkspaceInfo workspace)
workspace
- Workspace Manager dataNFEWorkspaceInfo getWorkspaceInfo()
void setModelObjectFactory(NFEModelObjectFactory moFactory)
moFactory
- A model object factory instanceNFEModelObjectFactory getModelObjectFactory()
void setIdManager(NFEIdManager idManager)
idManager
- an id manager instanceNFEIdManager getIdManager()
NFEIOServiceProvider getServiceProvider()
void setServiceProvider(NFEIOServiceProvider sp)
sp
- a service provider instancevoid setNetwork(NFENetwork network)
network
- a network instanceNFENetwork getNetwork()
void addFeatureLayer(NFEFeatureLayer featureLayer)
featureLayer
- a not null, possibly empty, feature layer instancejava.util.Collection<NFEFeatureLayer> getFeatureLayers()
NFEFeatureLayer getFeatureLayer(long featureLayerId)
featureLayerId
- a feature layer idNFEFeatureLayer getFeatureLayer(java.lang.String featureLayerName)
featureLayerName
-NFEFeatureLayer removeFeatureLayer(long featureLayerId)
featureLayerId
- a feature layer idjava.awt.geom.Area getLoadedArea()
void addLoadedArea(java.awt.geom.Area area)
area
- the area of a recently loaded model's contentjava.util.Collection<NFEFeatureElement> getFeatureElementsOnNetworkElement(NFENetworkElement networkElement)
networkElement
- a network element from the model's networkjava.util.Collection<NFEFeatureElement> getFeatureElementsOnNetworkElement(NFENetworkElement networkElement, int hierarchyLevel)
networkElement
- a network element from the model's networkhierarchyLevel
- the hierarchy level of the returned feature elementsint getFeatureElementsCount(NFENetworkElement networkElement)
networkElement
- a network element from the model's networkjava.util.Collection<NFEFeature> getFeaturesOnNetworkElement(NFENetworkElement networkElement)
networkElement
- a network element from the model's networkvoid setEditionManager(NFEEditionManager em)
em
- an edition manager instanceNFEEditionManager getEditionManager()
void setEventDispatcher(NFEEventDispatcher<NFEModelListener> eventDispatcher)
eventDispatcher
- an event dispatcher instanceNFEEventDispatcher<NFEModelListener> getDispatcher()
NFEFeatureLayer getAnalysisLayer()
void setAnalysisLayer(NFEFeatureLayer analysisFeatureLayer)
analysisFeatureLayer
- a feature layer instancevoid addModelListener(NFEModelListener listener)
listener
- a model listener instancevoid removeModelListener(NFEModelListener listener)
listener
- a model listener instanceNFESpatialModel getSpatialModel()
NFEManipulator getManipulator()
NFERulesModel getRulesModel()