summaryrefslogtreecommitdiff
path: root/sources/protocols/implementations/VSBroadcastSturmProtocol.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-30 11:32:20 +0000
committerPaul Buetow <paul@buetow.org>2008-05-30 11:32:20 +0000
commit1e54f3932963a67894ccc9c80155c9e1ff461148 (patch)
tree7e2928f646263b9ce1b85bb20caf2840a029feab /sources/protocols/implementations/VSBroadcastSturmProtocol.java
parent39f85a54cc522fb9d0f0196dc2f4577fffc9b897 (diff)
documented more.
Diffstat (limited to 'sources/protocols/implementations/VSBroadcastSturmProtocol.java')
-rw-r--r--sources/protocols/implementations/VSBroadcastSturmProtocol.java25
1 files changed, 14 insertions, 11 deletions
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);
}