Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
useless cosmetics hinted by qtcreator
[simgrid.git] / examples / java / dht / chord / ChordTask.java
1 /* Copyright (c) 2006-2019. 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.chord;
7
8 import org.simgrid.msg.Task;
9
10 public class ChordTask extends Task {
11   private String issuerHostName;
12   private String answerTo;
13   public ChordTask() {
14     this(null,null);
15   }
16
17   public ChordTask(String issuerHostName, String answerTo) {
18           super(null, Common.COMP_SIZE, Common.COMM_SIZE);
19           this.issuerHostName = issuerHostName;
20           this.answerTo = answerTo;
21   }
22
23   public String getIssuerHostName(){
24     return this.issuerHostName;
25   }
26
27   public String getAnswerTo(){
28     return this.answerTo;
29   }
30 }