X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc1751d13a6d2673b003820533ff1de78b540f43..ce2a02a088fe07b61de72c882d6e6a1f620d573b:/examples/java/dht/kademlia/KademliaTask.java diff --git a/examples/java/dht/kademlia/KademliaTask.java b/examples/java/dht/kademlia/KademliaTask.java new file mode 100644 index 0000000000..ebb4670b82 --- /dev/null +++ b/examples/java/dht/kademlia/KademliaTask.java @@ -0,0 +1,23 @@ +/* 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 dht.kademlia; +import dht.kademlia.Common; + +import org.simgrid.msg.Task; + +public class KademliaTask extends Task { + protected int senderId; + + public KademliaTask(int senderId) { + super("kademliatask",Common.COMP_SIZE,Common.COMM_SIZE); + this.senderId = senderId; + } + + public int getSenderId() { + return senderId; + } +}