From 1e54f3932963a67894ccc9c80155c9e1ff461148 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 30 May 2008 11:32:20 +0000 Subject: documented more. --- .../implementations/VSBroadcastSturmProtocol.java | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'sources/protocols/implementations/VSBroadcastSturmProtocol.java') diff --git a/sources/protocols/implementations/VSBroadcastSturmProtocol.java b/sources/protocols/implementations/VSBroadcastSturmProtocol.java index b07f6fb..fda052d 100644 --- a/sources/protocols/implementations/VSBroadcastSturmProtocol.java +++ b/sources/protocols/implementations/VSBroadcastSturmProtocol.java @@ -1,23 +1,23 @@ /* * Copyright (c) 2008 Paul C. Buetow, vs@dev.buetow.org - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * 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 General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * All icons of the icons/ folder are under a Creative Commons - * Attribution-Noncommercial-Share Alike License a CC-by-nc-sa. - * + * + * All icons of the icons/ folder are under a Creative Commons + * Attribution-Noncommercial-Share Alike License a CC-by-nc-sa. + * * The icon's homepage is http://code.google.com/p/ultimate-gnome/ */ @@ -28,11 +28,14 @@ import java.util.ArrayList; import core.VSMessage; import protocols.VSAbstractProtocol; -// TODO: Auto-generated Javadoc /** - * The class VSBroadcastSturmProtocol. + * The class VSBroadcastSturmProtocol, an implementation of the broadcast + * sturm protocol. + * + * @author Paul C. Buetow */ public class VSBroadcastSturmProtocol extends VSAbstractProtocol { + /** The serial version uid */ private static final long serialVersionUID = 1L; /** The sent messages. */ @@ -110,8 +113,8 @@ public class VSBroadcastSturmProtocol extends VSAbstractProtocol { public void onServerRecv(VSMessage recvMessage) { if (!sentMessages.contains(recvMessage)) { VSMessage message = new VSMessage(); - message.setInteger("Broadcast", recvMessage.getInteger("Broadcast")); - + message.setInteger("Broadcast", + recvMessage.getInteger("Broadcast")); sentMessages.add(message); sendMessage(message); } -- cgit v1.2.3