/*
 * 
 * *****************************************************************************************
 * Author: Ugurcan Aytar
 * Senior Computer Science Student at Bilkent University - Ankara, Turkey
 * Research Intern at Case Western Reserve University - Cleveland, OH, USA
 * September, 2016
 * 
 * Advisor: Prof. Mehmet Koyuturk
 * Supervisor: Mustafa Coskun, PhD
 * 
 * 
 * 			Cytoscape Implementation of "Efficient Processing of Network 
 * 			  Proximity Queries via Chebyshev Acceleration" — CHOPPER
 * 
 * For your questions, please feel free to e-mail me: ugurcan.aytar@ug.bilkent.edu.tr
 * 
 * 
 * *****************************************************************************************
 * 
 */

package org.cytoscape.myapp.cwru_chopper_algorithm.internal;

import org.cytoscape.model.CyNetwork;
import org.cytoscape.model.CyNetworkFactory;
import org.cytoscape.model.CyNetworkManager;
import org.cytoscape.myapp.cwru_chopper_algorithm.internal.ChopperNetworkTask;
import org.cytoscape.session.CyNetworkNaming;
import org.cytoscape.task.NetworkTaskFactory;
import org.cytoscape.work.TaskIterator;

public class ChopperNetworkTaskFactory implements NetworkTaskFactory {
	
	private final CyNetworkManager netMgr;
	private final CyNetworkFactory cnf;
	private final CyNetworkNaming namingUtil;

	
	public ChopperNetworkTaskFactory(CyNetwork cN, 
									final CyNetworkManager netMgr, 
									final CyNetworkNaming namingUtil,
									final CyNetworkFactory cnf){
		
		this.netMgr = netMgr;
		this.namingUtil = namingUtil;
		this.cnf = cnf;
	}
	
	@Override
	public TaskIterator createTaskIterator(CyNetwork network) {
		return new TaskIterator(new ChopperNetworkTask(network, netMgr, cnf, namingUtil));
	}

	@Override
	public boolean isReady(CyNetwork network) {
		return network != null;
	}
	
}

@@ -1345,26 +1345,16 @@
 ork cN, 
-%0A%09%09%09%09%09%09%09%09%09
 final Cy
@@ -1378,28 +1378,24 @@
 tMgr, %0A%09%09%09%09%09
-%09%09%09
-%09
 final CyNetw
@@ -1419,18 +1419,9 @@
 til,
-%0A%09%09%09%09%09%09%09%09%09
+ 
 fina

Update ChopperNetworkTaskFactory.java