Changeset 390 for trunk/src/org/expeditee/agents
- Timestamp:
- 11/17/08 15:43:36 (16 years ago)
- Location:
- trunk/src/org/expeditee/agents
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/agents/Agent.java
r179 r390 12 12 */ 13 13 public interface Agent extends Runnable { 14 14 15 15 /** 16 16 * This method should always be called before calling process(). The Frame -
trunk/src/org/expeditee/agents/ComputeTree.java
r247 r390 38 38 // Search for @Compute frame tag 39 39 String computeTag = null; 40 41 //TODO can speed this up by using frame.hasAnnotations 40 42 for (Item i : frame.getItems()) { 41 43 if (_stop) … … 109 111 } 110 112 } 113 114 if(value.equals(Double.NaN)) 115 continue; 111 116 112 117 if (value != null) { -
trunk/src/org/expeditee/agents/DefaultAgent.java
r313 r390 18 18 */ 19 19 public abstract class DefaultAgent implements Agent { 20 public static int AGENTS_RUNNING = 0; 21 20 22 public static final String CLIPBOARD = "Clipboard"; 21 23 … … 45 47 46 48 public DefaultAgent(String delay) { 47 super();49 this(); 48 50 try { 49 51 _delay = (int) (Double.parseDouble(delay) * 1000); … … 54 56 public DefaultAgent() { 55 57 super(); 58 AGENTS_RUNNING++; 59 } 60 61 public static boolean isAgentRunning() { 62 return AGENTS_RUNNING > 0; 56 63 } 57 64 … … 101 108 102 109 _running = false; 110 AGENTS_RUNNING--; 103 111 104 112 FrameGraphics.requestRefresh(true);
Note:
See TracChangeset
for help on using the changeset viewer.