Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'mc' into mc++
[simgrid.git] / examples / java / kademlia / FindNodeTask.java
1 /* Copyright (c) 2012-2014. 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 /**
10  * @brief Find node tasks sent by a node to another
11  * "Find Node" task sent by a node to another. Ask him for
12  * its closest nodes from a destination.
13  */
14 public class FindNodeTask extends KademliaTask {
15         /**
16          * Id of the node we are trying to find: the destination
17          */
18         private int destination;
19         /**
20          * Constructor
21          */
22         public FindNodeTask(int senderId, int destination) {
23                 super(senderId);        
24                 this.destination = destination;
25         }
26
27
28
29         public int getDestination() {
30                 return destination;
31         }
32         
33 }