This commit was manufactured by cvs2svn to create tag 'buildscript'.
[IRC.git] /
1 package Util;
2
3 /* Edge *****************/
4
5 public class Edge {
6     protected GraphNode target;
7     protected GraphNode source;
8     protected boolean processed = false; 
9     
10
11     protected String dotnodeparams = new String();
12     
13     public Edge(GraphNode target) {
14         this.target = target;
15     }
16     
17     public String getLabel() {
18         return "";
19     }
20     
21     public void setSource(GraphNode s) {
22         this.source=s;
23     }
24     
25     public GraphNode getSource() {
26         return source;
27     }
28     
29     public GraphNode getTarget() {
30         return target;
31     }
32
33     public void setProcessed() {
34         processed = true;
35     }
36     
37     public boolean isProcessed(){
38         return processed;
39     }
40     
41     public void setDotNodeParameters(String param) {
42         if (param == null) {
43             throw new NullPointerException();
44         }
45         if (dotnodeparams.length() > 0) {
46             dotnodeparams += "," + param;
47         } else { 
48             dotnodeparams = param;
49         }
50     }
51 }