Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Energy, onHostDestruction: ensured ptr existence
[simgrid.git] / examples / java / chord / ChordTask.java
1 /* Copyright (c) 2006-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 chord;
8
9 import org.simgrid.msg.Task;
10
11 import chord.Common;
12 /**
13  * Base class for all Tasks in Chord.
14  */
15 public class ChordTask extends Task {
16         public String issuerHostName;
17         public String answerTo;
18         public ChordTask() {
19                 this(null,null);
20         }
21         public ChordTask(String issuerHostName, String answerTo) {
22                 super(null, Common.COMP_SIZE, Common.COMM_SIZE);
23                 this.issuerHostName = issuerHostName;
24                 this.answerTo = answerTo;
25         }
26 }