summaryrefslogtreecommitdiff
path: root/sources/protocols
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-25 09:03:33 +0000
committerPaul Buetow <paul@buetow.org>2008-05-25 09:03:33 +0000
commit009350323123fc4b47041cb2194e8df19f69423b (patch)
treea9562cf215181a03137d5281d49d26e0fe5a3b45 /sources/protocols
parentbb1dbccae485263ea5182546006339870c57b367 (diff)
Run astyle.
Diffstat (limited to 'sources/protocols')
-rw-r--r--sources/protocols/VSProtocol.java32
-rw-r--r--sources/protocols/implementations/BerkelyTimeProtocol.java4
-rw-r--r--sources/protocols/implementations/BroadcastSturmProtocol.java4
-rw-r--r--sources/protocols/implementations/DummyProtocol.java2
-rw-r--r--sources/protocols/implementations/ExternalTimeSyncProtocol.java4
-rw-r--r--sources/protocols/implementations/InternalTimeSyncProtocol.java2
-rw-r--r--sources/protocols/implementations/PingPongProtocol.java4
7 files changed, 26 insertions, 26 deletions
diff --git a/sources/protocols/VSProtocol.java b/sources/protocols/VSProtocol.java
index b3ebfe6..6ef824d 100644
--- a/sources/protocols/VSProtocol.java
+++ b/sources/protocols/VSProtocol.java
@@ -12,19 +12,19 @@ import core.*;
* The Class VSProtocol.
*/
abstract public class VSProtocol extends VSEvent {
-
+
/** The is server. */
private boolean isServer;
-
+
/** The is client. */
private boolean isClient;
-
+
/** The current context is server. */
private boolean currentContextIsServer;
/**
* Send message.
- *
+ *
* @param message the message
*/
protected void sendMessage(VSMessage message) {
@@ -39,9 +39,9 @@ abstract public class VSProtocol extends VSEvent {
/**
* Checks if is incorrect protocol.
- *
+ *
* @param message the message
- *
+ *
* @return true, if is incorrect protocol
*/
private final boolean isIncorrectProtocol(VSMessage message) {
@@ -60,7 +60,7 @@ abstract public class VSProtocol extends VSEvent {
/**
* On message recv.
- *
+ *
* @param message the message
*/
public final void onMessageRecv(VSMessage message) {
@@ -80,7 +80,7 @@ abstract public class VSProtocol extends VSEvent {
/**
* Checks if is server.
- *
+ *
* @param isServer the is server
*/
public final void isServer(boolean isServer) {
@@ -89,7 +89,7 @@ abstract public class VSProtocol extends VSEvent {
/**
* Checks if is client.
- *
+ *
* @param isClient the is client
*/
public final void isClient(boolean isClient) {
@@ -117,34 +117,34 @@ abstract public class VSProtocol extends VSEvent {
* On client start.
*/
abstract protected void onClientStart();
-
+
/**
* On client reset.
*/
abstract protected void onClientReset();
-
+
/**
* On client recv.
- *
+ *
* @param message the message
*/
abstract protected void onClientRecv(VSMessage message);
-
+
/**
* On server reset.
*/
abstract protected void onServerReset();
-
+
/**
* On server recv.
- *
+ *
* @param message the message
*/
abstract protected void onServerRecv(VSMessage message);
/**
* Gets the num processes.
- *
+ *
* @return the num processes
*/
protected int getNumProcesses() {
diff --git a/sources/protocols/implementations/BerkelyTimeProtocol.java b/sources/protocols/implementations/BerkelyTimeProtocol.java
index 7326ac5..177dc4d 100644
--- a/sources/protocols/implementations/BerkelyTimeProtocol.java
+++ b/sources/protocols/implementations/BerkelyTimeProtocol.java
@@ -92,7 +92,7 @@ public class BerkelyTimeProtocol extends VSProtocol {
/**
* Calculate the new average time.
- *
+ *
* @return the long
*/
private long calculateAverageTime() {
@@ -112,7 +112,7 @@ public class BerkelyTimeProtocol extends VSProtocol {
/**
* Sends to all clients a value to justify their local clocks.
- *
+ *
* @param avgTime the avg time
*/
private void sendJustifyRequests(long avgTime) {
diff --git a/sources/protocols/implementations/BroadcastSturmProtocol.java b/sources/protocols/implementations/BroadcastSturmProtocol.java
index 9efd347..6969221 100644
--- a/sources/protocols/implementations/BroadcastSturmProtocol.java
+++ b/sources/protocols/implementations/BroadcastSturmProtocol.java
@@ -14,10 +14,10 @@ import protocols.VSProtocol;
* The Class BroadcastSturmProtocol.
*/
public class BroadcastSturmProtocol extends VSProtocol {
-
+
/** The sent messages. */
private ArrayList<VSMessage> sentMessages;
-
+
/** The broadcast count. */
private static int broadcastCount;
diff --git a/sources/protocols/implementations/DummyProtocol.java b/sources/protocols/implementations/DummyProtocol.java
index 50690b3..52e9b28 100644
--- a/sources/protocols/implementations/DummyProtocol.java
+++ b/sources/protocols/implementations/DummyProtocol.java
@@ -12,7 +12,7 @@ import core.VSMessage;
* The Class DummyProtocol.
*/
public class DummyProtocol extends VSProtocol {
-
+
/**
* Instantiates a new dummy protocol.
*/
diff --git a/sources/protocols/implementations/ExternalTimeSyncProtocol.java b/sources/protocols/implementations/ExternalTimeSyncProtocol.java
index 63edcaf..6193417 100644
--- a/sources/protocols/implementations/ExternalTimeSyncProtocol.java
+++ b/sources/protocols/implementations/ExternalTimeSyncProtocol.java
@@ -12,10 +12,10 @@ import protocols.VSProtocol;
* The Class ExternalTimeSyncProtocol.
*/
public class ExternalTimeSyncProtocol extends VSProtocol {
-
+
/** The request time. */
private long requestTime;
-
+
/** The waiting for response. */
private boolean waitingForResponse;
diff --git a/sources/protocols/implementations/InternalTimeSyncProtocol.java b/sources/protocols/implementations/InternalTimeSyncProtocol.java
index 2f9a84c..a55430b 100644
--- a/sources/protocols/implementations/InternalTimeSyncProtocol.java
+++ b/sources/protocols/implementations/InternalTimeSyncProtocol.java
@@ -12,7 +12,7 @@ import protocols.VSProtocol;
* The Class InternalTimeSyncProtocol.
*/
public class InternalTimeSyncProtocol extends VSProtocol {
-
+
/** The waiting for response. */
private boolean waitingForResponse;
diff --git a/sources/protocols/implementations/PingPongProtocol.java b/sources/protocols/implementations/PingPongProtocol.java
index 5df152f..a7cf9fc 100644
--- a/sources/protocols/implementations/PingPongProtocol.java
+++ b/sources/protocols/implementations/PingPongProtocol.java
@@ -12,10 +12,10 @@ import protocols.VSProtocol;
* The Class PingPongProtocol.
*/
public class PingPongProtocol extends VSProtocol {
-
+
/** The client counter. */
private int clientCounter;
-
+
/** The server counter. */
private int serverCounter;