public interface NFEModelIOService extends NFEIOService
| Modifier and Type | Method and Description |
|---|---|
NFEFeatureLayer |
createFeatureLayer(java.lang.String featureLayerName,
java.lang.String featureTable,
java.lang.String relationTable,
java.lang.String hierarchyTable,
java.util.Collection<NFEAttributeDescriptor> attrDescriptors,
int hierarchyLevel,
int zOrder)
Creates a feature layer.
|
NFEModel |
createFromScratchModel(java.lang.String modelName,
boolean directedNetwork,
NFEGeometryDescriptor geomDescriptor)
Creates a model in from scratch mode.
|
NFEModel |
createOverExistingNetworkModel(java.lang.String modelName,
java.lang.String networkName)
Creates a model in from existing network mode.
|
void |
deleteCatalog(long catalogId)
Deletes the specified catalog.
|
void |
deleteFeatureClass(NFEFeatureClass featClass)
Deletes the feature class.
|
void |
deleteFeatureLayer(NFEFeatureLayer featLayer)
Deletes the feature layer.
|
void |
deleteFeatureLayerAttributes(NFEFeatureLayer featLayer,
java.util.Collection<NFEAttributeDescriptor> attrDescriptors)
Deletes the feature layer attributes.
|
void |
deleteModel()
Deletes the model.
|
void |
enableAnalysisInModel()
Enables the analysis searching creating the path layer.
|
java.util.Collection<NFECatalog> |
getCatalogs()
Returns all the catalogs related to the model.
|
java.util.Map<java.lang.Long,java.util.Collection<java.lang.String>> |
getFeatureLayersAttributesUsingCatalog(long catalogId)
Returns a map with as key the feature layer identifiers and as values the list of attributes using the catalog.
|
java.util.Map<java.lang.Long,java.lang.String> |
getModelsIdentificators()
Returns a map with identifiers and names of all the existing models.
|
NFEModel |
loadModel(java.lang.String modelName)
Loads the NFE model.
|
void |
persistCatalog(NFECatalog catalog)
Persists a catalog.
|
void |
persistFeatureClass(NFEFeatureClass featClass)
Persists a feature class.
|
void |
persistFeatureLayerAttributes(NFEFeatureLayer featLayer,
java.util.Collection<NFEAttributeDescriptor> attrDescriptors)
Persists the feature layer attributes.
|
void |
persistRules(java.util.Collection<NFEConnectivityRule> newRules,
java.util.Collection<NFEConnectivityRule> deletedRules,
java.util.Collection<NFEConnectivityRule> updatedRules)
Persists the NFE rules.
|
long |
registerRuleHandler(java.lang.String handlerFQClassName,
NFEConnectivityRule.ConnectivityRuleType ruleType)
Registers the rule handler for the specified rule.
|
void |
updateAttributeConstraints(java.lang.Long featureClassId,
java.lang.String attributeName,
java.lang.String newValue)
Updates the attribute default value for the specified feature class.
|
void |
updateCatalog(NFECatalog catalog)
Updates the catalog values of the specified catalog.
|
void |
updateFeatureClass(NFEFeatureClass featClass)
Updates the feature class.
|
void |
updateFeatureLayersZOrder(java.util.Collection<NFEFeatureLayer> featLayers)
Updates the feature layers Z-order.
|
getDataSource, getModel, getServiceProvider, setDataSource, setModelNFEModel createFromScratchModel(java.lang.String modelName, boolean directedNetwork, NFEGeometryDescriptor geomDescriptor) throws NFEIOException
modelName - NFE model namedirectedNetwork - true if the network to create has to be directed, false otherwisegeomDescriptor - network geometry descriptorNFEIOException - if an NFE error occurs.NFEModel createOverExistingNetworkModel(java.lang.String modelName, java.lang.String networkName) throws NFEIOException
modelName - model namenetworkName - network nameNFEIOException - if an NFE error occurs.NFEFeatureLayer createFeatureLayer(java.lang.String featureLayerName, java.lang.String featureTable, java.lang.String relationTable, java.lang.String hierarchyTable, java.util.Collection<NFEAttributeDescriptor> attrDescriptors, int hierarchyLevel, int zOrder) throws NFEIOException
featureLayerName - feature layer namefeatureTable - feature tablerelationTable - relation tablehierarchyTable - hierarchy tableattrDescriptors - attributes descriptorshierarchyLevel - hierarchy level of the feature layerzOrder - Z-order of the feature layer. The Z-order determines which feature layer appears on top of the other.NFEIOException - if an NFE error occurs.NFEModel loadModel(java.lang.String modelName) throws NFEIOException
modelName - model nameNFEIOException - if an NFE error occurs.void persistFeatureClass(NFEFeatureClass featClass) throws NFEIOException
featClass - feature classNFEIOException - if an NFE error occurs.void persistFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors) throws NFEIOException
featLayer - feature layerattrDescriptors - attributes descriptorsNFEIOException - if an NFE error occurs.void persistCatalog(NFECatalog catalog) throws NFEIOException
catalog - catalogNFEIOException - if an NFE error occurs.void updateFeatureLayersZOrder(java.util.Collection<NFEFeatureLayer> featLayers) throws NFEIOException
featLayers - feature layers to updateNFEIOException - if an NFE error occurs.void updateFeatureClass(NFEFeatureClass featClass) throws NFEIOException
featClass - feature classNFEIOException - if an NFE error occurs.void updateAttributeConstraints(java.lang.Long featureClassId,
java.lang.String attributeName,
java.lang.String newValue)
throws NFEIOException
featureClassId - feature class idattributeName - attribute namenewValue - new attribute default valueNFEIOException - if an NFE error occurs.void updateCatalog(NFECatalog catalog) throws NFEIOException
catalog - catalogNFEIOException - if an NFE error occurs.void deleteModel()
throws NFEIOException
NFEIOException - if an NFE error occurs.void deleteFeatureLayer(NFEFeatureLayer featLayer) throws NFEIOException
featLayer - feature layerNFEIOException - if an NFE error occurs.void deleteFeatureClass(NFEFeatureClass featClass) throws NFEIOException
featClass - feature classNFEIOException - if an NFE error occurs.void deleteFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors) throws NFEIOException
featLayer - feature layerattrDescriptors - attributes to deleteNFEIOException - if an NFE error occurs.void deleteCatalog(long catalogId)
throws NFEIOException
catalogId - catalog idNFEIOException - if an NFE error occurs.java.util.Map<java.lang.Long,java.lang.String> getModelsIdentificators()
throws NFEIOException
NFEIOException - if an NFE error occurs.java.util.Collection<NFECatalog> getCatalogs() throws NFEIOException
NFEIOException - if an NFE error occurs.java.util.Map<java.lang.Long,java.util.Collection<java.lang.String>> getFeatureLayersAttributesUsingCatalog(long catalogId)
throws NFEIOException
catalogId - catalog idNFEIOException - if an NFE error occurs.void enableAnalysisInModel()
throws NFEIOException
NFEIOExceptionvoid persistRules(java.util.Collection<NFEConnectivityRule> newRules, java.util.Collection<NFEConnectivityRule> deletedRules, java.util.Collection<NFEConnectivityRule> updatedRules) throws NFEIOException
newRules - rules to adddeletedRules - rules to deleteupdatedRules - rules to updateNFEIOException - if an NFE error occurs.long registerRuleHandler(java.lang.String handlerFQClassName,
NFEConnectivityRule.ConnectivityRuleType ruleType)
throws NFEIOException
handlerFQClassName - rule handler full qualified class nameruleType - type of rule the handler is forNFEIOException - if an NFE error occurs.