m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java
diff options
context:
space:
mode:
authorMagdalena GrodziƄska <mag.grodzinska@gmail.com>2020-01-10 23:21:22 +0100
committerGitHub <noreply@github.com>2020-01-10 23:21:22 +0100
commit19ec8b17e48955218087edc51a1a5092938100c1 (patch)
treeb23a9aeb25c0889e8162da2fb63ebd6a204ea640 /src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java
parentf943acc55cfc133ad93801f3498b7662ccbe3a92 (diff)
parente2cfe0d9643c3a02223a9e9c4f7d6ed29f0e363a (diff)
Merge branch 'master' into gossipgirl_strategies_2
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java
index 4c223f5..1d7c0c6 100644
--- a/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/messages/RemoteGossipGirlMessage.java
@@ -2,9 +2,12 @@ package pl.edu.mimuw.cloudatlas.agent.messages;
import pl.edu.mimuw.cloudatlas.model.ValueTime;
+import java.net.InetAddress;
+
public class RemoteGossipGirlMessage extends GossipGirlMessage {
private ValueTime sentTimestamp;
private ValueTime receivedTimestamp;
+ private InetAddress senderAddress;
public RemoteGossipGirlMessage(String messageId, long timestamp, Type type) {
super(messageId, timestamp, type);
@@ -27,4 +30,8 @@ public class RemoteGossipGirlMessage extends GossipGirlMessage {
public ValueTime getReceivedTimestamp() {
return receivedTimestamp;
}
+
+ public InetAddress getSenderAddress() { return senderAddress; }
+
+ public void setSenderAddress(InetAddress senderAddress) { this.senderAddress = senderAddress; }
}