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() {
36 public String getName(){
41 * @return string representation of the tasknode (e.g "Task foo")
43 public String toString(){
44 return getTextLabel();
47 public int hashCode(){
48 return name.hashCode();
52 public boolean equals(Object o) {
53 if (o instanceof TaskNode) {
54 TaskNode tn=(TaskNode)o;
55 return (tn.name.equals(name));
60 public boolean edgeExists(TEdge newedge){
64 return edges.contains(newedge);