1 package Analysis.TaskStateAnalysis;
2 import Analysis.TaskStateAnalysis.*;
9 public class EGTaskNode extends GraphNode {
10 private boolean source=false;
12 private FlagState postfs;
13 private TaskDescriptor td;
17 private static int nodeid;
19 public EGTaskNode(String name, TaskDescriptor td, FlagState postfs) {
20 this(name, null, td, -1, postfs);
23 public EGTaskNode(String name, FlagState fs, TaskDescriptor td, int index, FlagState postfs) {
32 public String getTextLabel() {
33 return "Task "+getName()+"["+fs+"]->["+postfs+"]";
36 public String getName() {
40 public String getLabel() {
44 public int getIndex() {
48 public String toString() {
49 return getTextLabel();
52 public FlagState getPostFS() {
56 public boolean isRuntime() {
57 return td==null&&getName().equals("Runtime");
61 public boolean isOptional() {
62 return (!isSource()&&td!=null&&td.isOptional(td.getParameter(index)));
66 public TaskDescriptor getTD() {
70 public void setSource() {
74 public boolean isSource() {
82 public boolean isMultipleParams() {
83 return getTD()!=null&&getTD().numParameters()>1;
86 public String getFSName() {
90 return fs.getTextLabel();
93 public FlagState getFS() {