Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright headers.
[simgrid.git] / examples / java / dht / kademlia / FindNodeAnswerTask.java
1 /* Copyright (c) 2012-2018. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 package dht.kademlia;
8 import dht.kademlia.Answer;
9
10 public class FindNodeAnswerTask extends KademliaTask {
11   protected int destinationId;
12   protected Answer answer;
13
14   public FindNodeAnswerTask(int senderId, int destinationId, Answer answer) {
15     super(senderId);
16     this.destinationId = destinationId;
17     this.answer = answer;
18   }
19   public int getDestinationId() {
20     return destinationId;
21   }
22   public Answer getAnswer() {
23     return answer;
24   }
25 }