summaryrefslogtreecommitdiff
path: root/sources/protocols/implementations/DummyProtocol.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-28 22:14:40 +0000
committerPaul Buetow <paul@buetow.org>2008-05-28 22:14:40 +0000
commit1a16f73ec3bb0eae98b4d540984f9015abe4c249 (patch)
treea721b20b6a667ad5944c8e94e8646b5a5d447ca9 /sources/protocols/implementations/DummyProtocol.java
parentca09c67e85acb0ab6c85c87f0dd0c05b35262b12 (diff)
all protocol classnames now have a VS prefix
Diffstat (limited to 'sources/protocols/implementations/DummyProtocol.java')
-rw-r--r--sources/protocols/implementations/DummyProtocol.java101
1 files changed, 0 insertions, 101 deletions
diff --git a/sources/protocols/implementations/DummyProtocol.java b/sources/protocols/implementations/DummyProtocol.java
deleted file mode 100644
index dee873e..0000000
--- a/sources/protocols/implementations/DummyProtocol.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * VS is (c) 2008 by Paul C. Buetow
- * vs@dev.buetow.org
- */
-package protocols.implementations;
-
-import protocols.VSAbstractProtocol;
-import core.VSMessage;
-
-/**
- * The Class DummyProtocol.
- */
-public class DummyProtocol extends VSAbstractProtocol {
- private static final long serialVersionUID = 1L;
-
- /**
- * Instantiates a new dummy protocol.
- */
- public DummyProtocol() {
- super(VSAbstractProtocol.HAS_ON_CLIENT_START);
- setClassname(getClass().toString());
- }
-
- /* (non-Javadoc)
- * @see events.VSAbstractProtocol#onClientInit()
- */
- public void onClientInit() {
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onClientReset()
- */
- public void onClientReset() {
- logg("onClientReset()");
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onClientStart()
- */
- public void onClientStart() {
- logg("onClientStart()");
-
- VSMessage message = new VSMessage();
- message.setString("Greeting", "Hello World!");
- message.setInteger("A number", 1);
- message.setBoolean("A boolean", true);
- message.setFloat("A float", 1.2f);
- sendMessage(message);
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onClientRecv(core.VSMessage)
- */
- public void onClientRecv(VSMessage recvMessage) {
- logg("onClientRecv("+recvMessage+")");
-
- String s = recvMessage.getString("Greeting");
- int n = recvMessage.getInteger("A number");
- boolean b = recvMessage.getBoolean("A boolean");
- float f = recvMessage.getFloat("A float");
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onClientSchedule()
- */
- public void onClientSchedule() {
- }
-
- /* (non-Javadoc)
- * @see events.VSAbstractProtocol#onServerInit()
- */
- public void onServerInit() {
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onServerReset()
- */
- public void onServerReset() {
- logg("onClientReset()");
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onServerRecv(core.VSMessage)
- */
- public void onServerRecv(VSMessage recvMessage) {
- logg("onServerRecv("+recvMessage+")");
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#onServerSchedule()
- */
- public void onServerSchedule() {
- }
-
- /* (non-Javadoc)
- * @see protocols.VSAbstractProtocol#toString()
- */
- public String toString() {
- return super.toString() + "; Dummy Test";
- }
-}