Repository navigation
Expand file tree
/
Copy pathNeighbor.java
More file actions
93 lines (83 loc) · 2.53 KB
/
Copy pathNeighbor.java
File metadata and controls
93 lines (83 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package jota.model;
/**
* This class represents an Neighbor.
*
* @author pinpong
**/
public class Neighbor {
private String address;
private Integer numberOfAllTransactions;
private Integer numberOfInvalidTransactions;
private Integer numberOfNewTransactions;
private Integer numberOfRandomTransactionRequests;
private Integer numberOfSentTransactions;
private String connectionType;
/**
* Initializes a new instance of the Neighbor class.
*/
public Neighbor(String address, Integer numberOfAllTransactions, Integer numberOfInvalidTransactions, Integer numberOfNewTransactions, Integer numberOfRandomTransactionRequests, Integer numberOfSentTransactions, String connectionType) {
this.address = address;
this.numberOfAllTransactions = numberOfAllTransactions;
this.numberOfInvalidTransactions = numberOfInvalidTransactions;
this.numberOfNewTransactions = numberOfNewTransactions;
this.numberOfRandomTransactionRequests = numberOfRandomTransactionRequests;
this.numberOfSentTransactions = numberOfSentTransactions;
this.connectionType = connectionType;
}
/**
* Get the address.
*
* @return The address.
*/
public String getAddress() {
return address;
}
/**
* Get the number of all transactions.
*
* @return The number of all transactions.
*/
public Integer getNumberOfAllTransactions() {
return numberOfAllTransactions;
}
/**
* Get the number of invalid transactions.
*
* @return The number of invalid transactions.
*/
public Integer getNumberOfInvalidTransactions() {
return numberOfInvalidTransactions;
}
/**
* Get the number of new transactions.
*
* @return The number of new transactions.
*/
public Integer getNumberOfNewTransactions() {
return numberOfNewTransactions;
}
/**
* Get the number of random transaction requests.
*
* @return The number of random transaction requests.
*/
public Integer getNumberOfRandomTransactionRequests() {
return numberOfRandomTransactionRequests;
}
/**
* Get the number of sent transactions.
*
* @return The number of sent transactions.
*/
public Integer getNumberOfSentTransactions() {
return numberOfSentTransactions;
}
/**
* Get the connection type.
*
* @return The connection type.
*/
public String getConnectionType() {
return connectionType;
}
}