Cytoscape 3.0.0-beta1 API

org.cytoscape.model
Interface CyNetworkManager


public interface CyNetworkManager

Basic access to networks and view in an instance of Cytoscape.


Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.

Method Summary
 void addNetwork(CyNetwork network)
          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.
 

Method Detail

getNetworkSet

Set<CyNetwork> getNetworkSet()
Provides the set of all the networks known to the network manager.

Returns:
the complete set of all the currently known networks in Cytoscape

getNetwork

CyNetwork getNetwork(long id)
Returns the network corresponding to the provided ID

Parameters:
id - an ID for an existing network
Returns:
null if "id" does not correspond to a network known to the network manager or the actual network if "id" does correspond to a network

networkExists

boolean networkExists(long networkId)
Tests whether a network has been registered with the network manager or not.

Parameters:
networkId - possibly the ID of a network
Returns:
true if "networkId" does correspond to a network known to the network manager, else false

destroyNetwork

void destroyNetwork(CyNetwork network)
Destroys a network.

Parameters:
network - a non-null reference to a CyNetwork

addNetwork

void addNetwork(CyNetwork network)
Registers a network with the network manager. Does nothing if the network is already known to the network manager.

Parameters:
network - a non-null CyNetwork

reset

void reset()
Releases all currently held references and resources.


Cytoscape 3.0.0-beta1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.