public interface CyNetworkManager
Module: model-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>model-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
void |
addNetwork(CyNetwork network)
Registers a network with the network manager and sets the network as current.
|
void |
addNetwork(CyNetwork network,
boolean setCurrent)
Registers a network with the network manager.
|
void |
destroyNetwork(CyNetwork network)
Destroys a network.
|
CyNetwork |
getNetwork(long id)
Returns the network corresponding to the provided ID
|
Set<CyNetwork> |
getNetworkSet()
Provides the set of all the networks known to the network manager.
|
boolean |
networkExists(long networkId)
Tests whether a network has been registered with the network manager or not.
|
void |
reset()
Releases all currently held references and resources.
|
Set<CyNetwork> getNetworkSet()
CyNetwork getNetwork(long id)
id
- an ID for an existing networkboolean networkExists(long networkId)
networkId
- possibly the ID of a networkvoid destroyNetwork(CyNetwork network)
network
- a non-null reference to a CyNetwork
void addNetwork(CyNetwork network)
addNetwork(network, true)
;network
- a non-null CyNetwork
void addNetwork(CyNetwork network, boolean setCurrent)
network
- a non-null CyNetwork
setCurrent
- if true, also sets the new network as currentvoid reset()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.