public class CreateKSPViewTask
extends org.cytoscape.task.AbstractNetworkTask
implements org.cytoscape.work.ObservableTask
Constructor and Description |
---|
CreateKSPViewTask(PathLinkerControlPanel controlPanel,
org.cytoscape.model.CyNetwork network,
PathLinkerModel model,
org.cytoscape.app.CyAppAdapter adapter,
org.cytoscape.application.CyApplicationManager applicationManager)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
createKSPSubgraphAndView()
Creates a new sub-network and sub-network view for the subgraph generated by the KSP
|
<R> R |
getResults(Class<? extends R> type)
Used to access the ksp subgraph/view and path rank column name created by the task
|
void |
run(org.cytoscape.work.TaskMonitor taskMonitor)
Runs the task to create the ksp subgraph, subgraphview, and path rank
|
void |
updateNetworkName()
Assign appropriate network name to the new sub-network created using nameIndex field
|
void |
updatePathRankAttribute(ArrayList<Algorithms.PathWay> paths)
Creates a path rank attribute to the network edge tables
that rank each edge in the newly generated paths according to its weight
|
cancel, getTaskIterator, insertTasksAfterCurrentTask, insertTasksAfterCurrentTask, setTaskIterator
public CreateKSPViewTask(PathLinkerControlPanel controlPanel, org.cytoscape.model.CyNetwork network, PathLinkerModel model, org.cytoscape.app.CyAppAdapter adapter, org.cytoscape.application.CyApplicationManager applicationManager)
controlPanel
- the PathLinkerControlPanelnetwork
- the networkmodel
- the modeladapter
- the adapterapplicationManager
- the application managerpublic <R> R getResults(Class<? extends R> type)
getResults
in interface org.cytoscape.work.ObservableTask
public void run(org.cytoscape.work.TaskMonitor taskMonitor)
run
in interface org.cytoscape.work.Task
run
in class org.cytoscape.work.AbstractTask
public void createKSPSubgraphAndView()
public void updatePathRankAttribute(ArrayList<Algorithms.PathWay> paths)
paths
- the sorted paths of the network generated from the algorithmpublic void updateNetworkName()
Copyright © 2018. All rights reserved.