Skip to content
Snippets Groups Projects
Commit 9f5f6d19 authored by Terry D. Norbraten's avatar Terry D. Norbraten
Browse files

javadoc entries

parent e6911141
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ javadoc.private=false ...@@ -91,7 +91,7 @@ javadoc.private=false
javadoc.splitindex=true javadoc.splitindex=true
javadoc.use=true javadoc.use=true
javadoc.version=false javadoc.version=false
javadoc.windowtitle= javadoc.windowtitle=${application.title} Demonstration
jlink.launcher=false jlink.launcher=false
jlink.launcher.name=WebsocketGateway jlink.launcher.name=WebsocketGateway
jnlp.codebase.type=no.codebase jnlp.codebase.type=no.codebase
......
...@@ -48,7 +48,8 @@ public class ConnectionManager ...@@ -48,7 +48,8 @@ public class ConnectionManager
* Add a client connection to the list. Messages will be * Add a client connection to the list. Messages will be
* relayed to this client. * relayed to this client.
* *
* @param aConnection * @param aConnection a DISEndpoint instance
* @see DISEndpoint
*/ */
public synchronized void addConnection(DISEndpoint aConnection) public synchronized void addConnection(DISEndpoint aConnection)
{ {
...@@ -60,7 +61,8 @@ public class ConnectionManager ...@@ -60,7 +61,8 @@ public class ConnectionManager
* typically called when a client closes the connection. We remove it * typically called when a client closes the connection. We remove it
* from the list of active connections. * from the list of active connections.
* *
* @param aConnection * @param aConnection a DISEndpoint instance
* @see DISEndpoint
*/ */
public synchronized void removeConnection(DISEndpoint aConnection) public synchronized void removeConnection(DISEndpoint aConnection)
{ {
......
...@@ -10,12 +10,12 @@ package edu.nps.moves.gateway; ...@@ -10,12 +10,12 @@ package edu.nps.moves.gateway;
public interface DISEndpoint public interface DISEndpoint
{ {
/** Send binary format DIS to an endpoint. /** Send binary format DIS to an endpoint.
* @param buf * @param buf raw array of DIS data
*/ */
void sendBinaryToClient(byte[] buf); void sendBinaryToClient(byte[] buf);
/** Send JSON format DIS to a client /** Send JSON format DIS to a client
* @param aMessage * @param aMessage string containing message info
*/ */
void sendToClient(String aMessage); void sendToClient(String aMessage);
} }
...@@ -79,9 +79,9 @@ public class DisNative implements Runnable, DISEndpoint { ...@@ -79,9 +79,9 @@ public class DisNative implements Runnable, DISEndpoint {
* Constructor * Constructor
* *
* @param socket socket we read and write on. * @param socket socket we read and write on.
* @param multicastAddress If null we read & write bcast. Otherwise mcast on * @param multicastAddress If null we read & write bcast. Otherwise mcast on
* this address * this address
* @param port * @param port port number
*/ */
public DisNative(MulticastSocket socket, InetAddress multicastAddress, int port) { public DisNative(MulticastSocket socket, InetAddress multicastAddress, int port) {
this.multicastSocket = socket; this.multicastSocket = socket;
...@@ -223,7 +223,7 @@ public class DisNative implements Runnable, DISEndpoint { ...@@ -223,7 +223,7 @@ public class DisNative implements Runnable, DISEndpoint {
* simply no-op this because it doesn't make sense to send a non-standard * simply no-op this because it doesn't make sense to send a non-standard
* string to the network. * string to the network.
* *
* @param aMessage * @param aMessage string containing message info
*/ */
@Override @Override
public void sendToClient(String aMessage) { public void sendToClient(String aMessage) {
......
...@@ -68,8 +68,8 @@ public class WebPageConnection implements DISEndpoint ...@@ -68,8 +68,8 @@ public class WebPageConnection implements DISEndpoint
/** Fired when a client sends a binary message. /** Fired when a client sends a binary message.
* *
* @param buf binary data * @param buf binary data
* @param offset * @param offset in array for binary data
* @param length * @param length of binary data in array
*/ */
@OnWebSocketMessage @OnWebSocketMessage
public void onBinaryMessage(byte buf[], int offset, int length) public void onBinaryMessage(byte buf[], int offset, int length)
...@@ -128,7 +128,7 @@ public class WebPageConnection implements DISEndpoint ...@@ -128,7 +128,7 @@ public class WebPageConnection implements DISEndpoint
* Sends data in binary format to the client. The end client is typically * Sends data in binary format to the client. The end client is typically
* another web page. * another web page.
* *
* @param buf * @param buf binary array containing DIS data
*/ */
@Override @Override
public void sendBinaryToClient(byte[] buf) public void sendBinaryToClient(byte[] buf)
......
...@@ -178,7 +178,7 @@ public class WebSocketServer ...@@ -178,7 +178,7 @@ public class WebSocketServer
* Entry point.Create a new Server class, initialize it, and start it. Give * Entry point.Create a new Server class, initialize it, and start it. Give
* user a clean way to exit program gracefully by typing a "q" on the * user a clean way to exit program gracefully by typing a "q" on the
* command line. * command line.
* @param args * @param args program entry arguments (if any)
*/ */
public static void main(String[] args) public static void main(String[] args)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment