X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/24dbcb1a8071fe684d776063f04b314d92094e8d..23da67335f942457b0d8b1f10e9849eba0eee9f7:/contrib/psg/src/example/bittorrent/SimpleMsg.java diff --git a/contrib/psg/src/example/bittorrent/SimpleMsg.java b/contrib/psg/src/example/bittorrent/SimpleMsg.java deleted file mode 100644 index cf9436ec67..0000000000 --- a/contrib/psg/src/example/bittorrent/SimpleMsg.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2007-2008 Fabrizio Frioli, Michele Pedrolli - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - * - * -- - * - * Please send your questions/suggestions to: - * {fabrizio.frioli, michele.pedrolli} at studenti dot unitn dot it - * - */ - -package example.bittorrent; - -import peersim.core.*; - -/** - * This class defines a simple message. - * A simple message has its type and the reference of the sender node. - * @see SimpleEvent - */ -public class SimpleMsg extends SimpleEvent { - - /** - * The sender of the message. - */ - protected Node sender; - - public SimpleMsg(){ - } - - /** - * Initializes the simple message with its type and sender. - * @param type The identifier of the type of the message - * @param sender The sender of the message - */ - public SimpleMsg(int type, Node sender){ - super.type = type; - this.sender = sender; - } - - /** - * Gets the sender of the message. - * @return The sender of the message. - */ - public Node getSender(){ - return this.sender; - } -}