public interface LogicalBasicNetwork
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addFeatureLayer(int featureLayerId, FeatureLayer featureLayer)
Adds the feature layer.
|
void |
addLink(LogicalNetLink link)
Adds a logical link to the network.
|
void |
addNode(LogicalNetNode node)
Adds a logical node to the network.
|
void |
addUserDataCategory(int userDataCategory)
Adds the user data category that have been loaded to the network.
|
java.lang.Object |
clone()
Supports cloneable
|
FeatureData |
getFeatureData()
Returns the feature data associated to this network.
|
LogicalNetLink |
getLink(long linkId)
Returns the logical link object for the specified link id.
|
long[] |
getLinkIds()
Returns all the link ids in the network.
|
int |
getLinkLevel()
Returns the link level of the network.
|
LogicalNetLink[] |
getLinks()
Returns all the links in the network.
|
java.lang.String |
getName()
Returns the internal network name, for example, the network name stored in network metadata table.
|
LogicalNetNode |
getNode(long nodeId)
Returns the logical node object for the specified node id.
|
long[] |
getNodeIds()
Returns all the node ids in the network.
|
LogicalNetNode[] |
getNodes()
Returns all the nodes in the network.
|
int |
getNumberOfLinks()
Returns the total number of links in the network.
|
int |
getNumberOfNodes()
Returns the total number of nodes in the network.
|
int[] |
getUserDataCategories()
Returns the user data categories loaded in the network.
|
boolean |
isFeatureLayerLoaded(int featureLayerId)
Returns whether the specified user data category is loaded.
|
boolean |
isUserDataCategoryLoaded(int category)
Returns whether the specified user data category is loaded.
|
boolean |
isUserDataLoaded()
Deprecated.
use getUserDataCategories
|
void |
removeLink(long linkId)
Removes a link from the network.
|
void |
removeNode(long nodeId)
Removes a node from the network.
|
void |
setFeatureData(FeatureData featureData)
Sets the feature data associated to this network.
|
void |
setIsUserDataLoaded(boolean isUserDataLoaded)
Deprecated.
use addUserDataCategory
|
java.lang.String getName()
int getLinkLevel()
void addLink(LogicalNetLink link)
link
- logical linkvoid addNode(LogicalNetNode node)
node
-int getNumberOfNodes()
int getNumberOfLinks()
LogicalNetNode[] getNodes()
LogicalNetLink[] getLinks()
LogicalNetNode getNode(long nodeId)
nodeId
- node idLogicalNetLink getLink(long linkId)
linkId
- link idlong[] getNodeIds()
long[] getLinkIds()
boolean isUserDataLoaded()
void setIsUserDataLoaded(boolean isUserDataLoaded)
isUserDataLoaded
- true, if the user data are loaded; false, otherwise.int[] getUserDataCategories()
void addUserDataCategory(int userDataCategory)
userDataCategory
- user data categoryboolean isUserDataCategoryLoaded(int category)
category
-void removeNode(long nodeId)
nodeId
- ID of the node to be removedvoid removeLink(long linkId)
linkId
- ID of the link to be removedFeatureData getFeatureData()
void setFeatureData(FeatureData featureData)
featureData
-void addFeatureLayer(int featureLayerId, FeatureLayer featureLayer)
featureLayer
-boolean isFeatureLayerLoaded(int featureLayerId)
featureLayerId
-java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException