org.cytoscape.cyni
Interface CyCyniAlgorithm

All Known Implementing Classes:
AbstractCyniAlgorithm

public interface CyCyniAlgorithm

An interface specific to Cyni algorithms.


Method Summary
 CyniAlgorithmContext createCyniContext(org.cytoscape.model.CyTable table, CyCyniMetricsManager metricsManager, org.cytoscape.work.TunableSetter tunableSetter, Map<String,Object> mparams)
          Returns a new cyni context object.
 org.cytoscape.work.TaskIterator createTaskIterator(CyniAlgorithmContext context, org.cytoscape.model.CyTable table, org.cytoscape.model.CyNetworkFactory networkFactory, org.cytoscape.view.model.CyNetworkViewFactory networkViewFactory, org.cytoscape.model.CyNetworkManager networkManager, org.cytoscape.model.CyNetworkTableManager netTableMgr, org.cytoscape.model.subnetwork.CyRootNetworkManager rootNetMgr, org.cytoscape.view.vizmap.VisualMappingManager vmMgr, org.cytoscape.view.model.CyNetworkViewManager networkViewManager, org.cytoscape.view.layout.CyLayoutAlgorithmManager layoutManager, CyCyniMetricsManager metricsManager)
          Creates a task iterator containing the cyni tasks.
 CyniCategory getCategory()
          A method to get the category of the algorithm
 String getName()
          Returns the computer-readable name of the Cyni Algorithm.
 boolean isReady(Object Context)
          Returns true if the task factory is ready to produce a task iterator.
 boolean supportsSelectedOnly()
          Tells if this Cyni supports doing a Cyni Algorithm on a subset of the nodes.
 

Method Detail

createTaskIterator

org.cytoscape.work.TaskIterator createTaskIterator(CyniAlgorithmContext context,
                                                   org.cytoscape.model.CyTable table,
                                                   org.cytoscape.model.CyNetworkFactory networkFactory,
                                                   org.cytoscape.view.model.CyNetworkViewFactory networkViewFactory,
                                                   org.cytoscape.model.CyNetworkManager networkManager,
                                                   org.cytoscape.model.CyNetworkTableManager netTableMgr,
                                                   org.cytoscape.model.subnetwork.CyRootNetworkManager rootNetMgr,
                                                   org.cytoscape.view.vizmap.VisualMappingManager vmMgr,
                                                   org.cytoscape.view.model.CyNetworkViewManager networkViewManager,
                                                   org.cytoscape.view.layout.CyLayoutAlgorithmManager layoutManager,
                                                   CyCyniMetricsManager metricsManager)
Creates a task iterator containing the cyni tasks.

Parameters:
context - The cyni context for this cyni algorithm.
table - The table with the data to perform the algorithm
networkFactory - The network factory to create a new network
networkViewFactory - The network view factory to create a new network view
networkManager - The network manager
netTableMgr - The network table manager
rootNetMgr - The root network manager
vmMgr - The Visual mapping manager that allows changing the visual style of a network
networkViewManager - The network view manager
layoutManager - The layout manager to apply a layout if a new network is created
tunableSetter - the setter if cyni is not called through the GUI
metricsManager - The metrics manager to access to all available metrics
mparams - The map to the input paramters to be used if cyni is not called through the GUI
Returns:
taskIterator contains cyni tasks.

isReady

boolean isReady(Object Context)
Returns true if the task factory is ready to produce a task iterator.

Parameters:
Context - The input parameters context for this cyni algorithm.
Returns:
true if the task factory is ready to produce a task iterator.

createCyniContext

CyniAlgorithmContext createCyniContext(org.cytoscape.model.CyTable table,
                                       CyCyniMetricsManager metricsManager,
                                       org.cytoscape.work.TunableSetter tunableSetter,
                                       Map<String,Object> mparams)
Returns a new cyni context object. This method is used to create custom configurations for the input parameters selection of the cyni algorithms.

Parameters:
table - The table where to get the data.
metricsManager - The cyni metrics manager.
tunableSetter - The tunable setter to set the parameters if not GUI is used.
mparams - The map of each one of the parameters with the value of the parameter.
Returns:
a new cyni context object, that will be added to a user interface, which will allow the selection of the algorithm's parameters.

supportsSelectedOnly

boolean supportsSelectedOnly()
Tells if this Cyni supports doing a Cyni Algorithm on a subset of the nodes.

Returns:
true if cyni algorithm supports applying only the algorithm on a subset of the nodes

getName

String getName()
Returns the computer-readable name of the Cyni Algorithm. To get a human readable name, use toString().

Returns:
The computer-readable name of the Cyni Algorithm.

getCategory

CyniCategory getCategory()
A method to get the category of the algorithm

Returns:
the Cyni category for the algorithm


Copyright © 2013. All Rights Reserved.