1 package Analysis.TaskStateAnalysis;
2 import Analysis.TaskStateAnalysis.*;
9 public class EGTaskNode extends TaskNode {
10 private boolean source=false;
11 private int loopmarker=0;
12 private boolean multipleparams=false;
13 private boolean optional = false;
14 private boolean marked=false;
15 private boolean tomention=true;
18 private TaskDescriptor td;
26 public EGTaskNode(String name){
32 public EGTaskNode(String name, FlagState fs){
38 public EGTaskNode(String name, TaskDescriptor td){
44 public EGTaskNode(String name, FlagState fs, TaskDescriptor td){
50 public TaskDescriptor getTD(){
54 public void setSource(){
58 public boolean isSource(){
66 public void doSelfLoopMarking(){
70 public void doLoopMarking(){
74 public boolean isSelfLoop(){
75 if (loopmarker==1) return true;
79 public boolean isLoop(){
80 if (loopmarker==2) return true;
84 public void setMultipleParams(){
88 public boolean isMultipleParams(){
89 return multipleparams;
92 public void setOptional(){
96 public boolean isOptional(){
104 public void unMark(){
108 public boolean isMarked(){
112 public String getFSName(){
113 if(fs == null) return "no flag";
114 else return fs.getTextLabel();
117 public FlagState getFS(){
121 public void dontMention(){
125 public boolean toMention(){
129 public void setAND(){