Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Creating the JaceP2P repository.
[jaceP2P.git] / src / jaceP2P / TaskId.java
1 package jaceP2P;
2
3 public class TaskId implements java.io.Serializable {
4
5         private static final long serialVersionUID = 1L;
6
7         // attributes
8         private String appliName = null;
9         private int rank = -1;
10         private String hostIP = null; // TODO a virer et laisser que le hostStub
11         private String hostName = null; // TODO a virer et laisser que le hostStub
12         private JaceInterface hostStub = null;
13
14         // constructors
15         public TaskId() {
16         }
17
18         public TaskId(String nom, int rang, JaceInterface s) {
19                 this.appliName = nom;
20                 this.rank = rang;
21                 // this.host = hosts;
22                 this.hostStub = s;
23         }
24
25         public void setAppliName(String nom) {
26                 this.appliName = nom;
27         }
28
29         // TODO a virer et laisser que le hostStub
30         public void setHostIP(String nom) {
31                 this.hostIP = nom;
32         }
33
34         // TODO a virer et laisser que le hostStub
35         public void setHostName(String nom) {
36                 this.hostName = nom;
37         }
38
39         public void setRank(int val) {
40                 this.rank = val;
41         }
42
43         public void setHostStub(JaceInterface s) {
44                 this.hostStub = s;
45         }
46
47         public String getAppliName() {
48                 return this.appliName;
49         }
50
51         // TODO a virer et laisser que le hostStub
52         public String getHostIP() {
53                 return this.hostIP;
54         }
55
56         // TODO a virer et laisser que le hostStub
57         public String getHostName() {
58                 return this.hostName;
59         }
60
61         public int getRank() {
62                 return this.rank;
63         }
64
65         public JaceInterface getHostStub() {
66                 return this.hostStub;
67         }
68 }