Fix tabbing.... Please fix your editors so they do tabbing correctly!!! (Spaces...
[IRC.git] / Robust / src / Analysis / Scheduling / SimExecutionNode.java
1 package Analysis.Scheduling;
2
3 import java.util.Vector;
4
5 import Util.GraphNode;
6
7 public class SimExecutionNode extends GraphNode {
8
9   private int nid;
10   private static int nodeID=0;
11
12   private int coreNum;
13   private long timepoint;
14   public Vector<Integer> spareCores;
15
16   public SimExecutionNode(int corenum,
17                           long timepoint) {
18     this.nid = SimExecutionNode.nodeID++;
19     this.coreNum = corenum;
20     this.timepoint = timepoint;
21     this.spareCores = null;
22   }
23
24   public int getNid() {
25     return nid;
26   }
27
28   public long getTimepoint() {
29     return timepoint;
30   }
31
32   public int getCoreNum() {
33     return coreNum;
34   }
35
36   public Vector<Integer> getSpareCores() {
37     return spareCores;
38   }
39
40   public void setSpareCores(Vector<Integer> spareCores) {
41     this.spareCores = spareCores;
42   }
43
44   public String getLabel() {
45     return "N" + this.nid;
46   }
47 }