1 24 25 package org.objectweb.dream.control.activity.task; 26 27 import org.objectweb.fractal.api.control.NameController; 28 29 33 public abstract class AbstractTask implements Task, NameController 34 { 35 36 40 protected static final Integer EXECUTE_AGAIN = new Integer (0); 41 42 46 protected static final Integer STOP_EXECUTING = new Integer (-1); 47 protected String taskName; 48 49 54 public AbstractTask(String name) 55 { 56 this.taskName = name; 57 } 58 59 62 public String getFcName() 63 { 64 return taskName; 65 } 66 67 70 public void setFcName(String name) 71 { 72 taskName = name; 73 } 74 75 78 public String toString() 79 { 80 return taskName; 81 } 82 } | Popular Tags |