1 package Analysis.TaskStateAnalysis;
2 import Analysis.TaskStateAnalysis.*;
10 public class TaskNode extends GraphNode {
12 private final String name;
14 private static int nodeid=0;
17 * Creates a new TaskNode using the TaskDescriptor.
18 * @param tasknode TaskDescriptor
20 public TaskNode(String name){
22 this.uid=TaskNode.nodeid++;
25 /**Returns the string representation of the node
26 * @return string representation of the tasknode (e.g "Task foo")
28 public String getTextLabel() {
32 public String getLabel() {
38 * @return string representation of the tasknode (e.g "Task foo")
40 public String toString(){
41 return getTextLabel();
44 public int hashCode(){
45 return name.hashCode();
49 public boolean equals(Object o) {
50 if (o instanceof TaskNode) {
51 TaskNode tn=(TaskNode)o;
52 return (tn.name.equals(name));