Logo AND Algorithmique Numérique Distribuée

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