Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Various cleanups in the java world (1/2)
[simgrid.git] / examples / java / kademlia / FindNodeAnswerTask.java
index ab85b3a..b4cad24 100644 (file)
@@ -1,35 +1,25 @@
-/* Copyright (c) 2012-2013. The SimGrid Team.
+/* Copyright (c) 2012-2014, 2016. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 package kademlia;
-
 import kademlia.Answer;
 
 public class FindNodeAnswerTask extends KademliaTask {
-       /**
-        * Destination id
-        */
-       protected int destinationId;
-       /**
-        * Answer to the FIND_NODE query.
-        */
-       protected Answer answer;
-       /**
-        * Constructor
-        */
-       public FindNodeAnswerTask(int senderId, int destinationId, Answer answer) {
-               super(senderId);
-               this.destinationId = destinationId;
-               this.answer = answer;
-       }
-       public int getDestinationId() {
-               return destinationId;
-       }
-       public Answer getAnswer() {
-               return answer;
-       }
-       
+  protected int destinationId;
+  protected Answer answer;
+
+  public FindNodeAnswerTask(int senderId, int destinationId, Answer answer) {
+    super(senderId);
+    this.destinationId = destinationId;
+    this.answer = answer;
+  }
+  public int getDestinationId() {
+    return destinationId;
+  }
+  public Answer getAnswer() {
+    return answer;
+  }
 }