Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Creating the JaceP2P repository.
[jaceP2P.git] / src / jaceP2P / SuperNodeData.java
1 package jaceP2P;
2
3 public class SuperNodeData implements java.io.Serializable {
4         private static final long serialVersionUID = 1L;
5
6         // attributes
7         private String IP = null;
8         private int port;
9         private JaceSuperNodeInterface stub = null;
10         private int nbOfNodes = 0;
11
12         // constructor
13         public SuperNodeData(String u, int p) {
14                 this.IP = u;
15                 this.port = p;
16         }
17
18         public void setIP(String u) {
19                 this.IP = u;
20         }
21
22         public void setPort(int p) {
23                 this.port = p;
24         }
25
26         public String getIP() {
27                 return this.IP;
28         }
29
30         public int getPort() {
31                 return this.port;
32         }
33
34         public void setStub(JaceSuperNodeInterface s) {
35                 this.stub = s;
36         }
37
38         public JaceSuperNodeInterface getStub() {
39                 return this.stub;
40         }
41
42         public void setNbOfNodes(int nb) {
43                 this.nbOfNodes = nb;
44         }
45
46         public int getNbOfNodes() {
47                 return this.nbOfNodes;
48         }
49
50 }