1 2 23 24 package net.fenyo.gnetwatch.activities; 25 26 import java.util.LinkedList ; 27 import java.util.List ; 28 29 import net.fenyo.gnetwatch.*; 30 import net.fenyo.gnetwatch.GUI.*; 31 import net.fenyo.gnetwatch.actions.Action; 32 import net.fenyo.gnetwatch.targets.*; 33 34 import org.apache.commons.logging.Log; 35 import org.apache.commons.logging.LogFactory; 36 import org.eclipse.swt.layout.GridData; 37 import org.eclipse.swt.widgets.TreeItem; 38 39 44 45 public class DebugQueue extends Queue implements Runnable { 46 private static Log log = LogFactory.getLog(DebugQueue.class); 47 48 private GUI gui = null; 49 private static int cnt = 0; 50 51 56 public DebugQueue(final String name, final Config config) { 58 super(name, config); 59 setDescription("debug and test operations"); 60 } 61 62 67 protected void informCycle() {} 69 70 75 public void setGUI(final GUI gui) { 77 this.gui = gui; 78 } 79 80 85 protected int getCycleDelay() { 87 return 1000; 88 } 89 90 95 protected int getEmptyCycleDelay() { 97 return 1000; 98 } 99 100 105 protected int getActionDelay() { 107 return 1000; 108 } 109 } 110 | Popular Tags |