Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Incorporate simgrid-java in simgrid-java/.
[simgrid.git] / simgrid-java / examples / kademlia / FindNodeAnswerTask.java
1 /* Copyright (c) 2012. 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 kademlia;
8
9 import kademlia.Answer;
10
11 public class FindNodeAnswerTask extends KademliaTask {
12         /**
13          * Destination id
14          */
15         protected int destinationId;
16         /**
17          * Answer to the FIND_NODE query.
18          */
19         protected Answer answer;
20         /**
21          * Constructor
22          */
23         public FindNodeAnswerTask(int senderId, int destinationId, Answer answer) {
24                 super(senderId);
25                 this.destinationId = destinationId;
26                 this.answer = answer;
27         }
28         public int getDestinationId() {
29                 return destinationId;
30         }
31         public Answer getAnswer() {
32                 return answer;
33         }
34         
35 }