EDU.gatech.cc.is.communication
Class RegisterMessage

java.lang.Object
  |
  +--EDU.gatech.cc.is.communication.Message
        |
        +--EDU.gatech.cc.is.communication.RegisterMessage

public class RegisterMessage
extends Message
implements java.lang.Cloneable, java.io.Serializable

A message to register the client with the server. For use internally by RoboComm, not normally used at the application level.

Copyright (c)1998 Tucker Balch

See Also:
Serialized Form

Field Summary
 int val
          Our ID to register.
 
Fields inherited from class EDU.gatech.cc.is.communication.Message
BROADCAST, MULTICAST, receivers, sender, type, UNICAST
 
Constructor Summary
RegisterMessage()
          create a RegisterMessage with default value.
RegisterMessage(int i)
          create a RegisterMessage with specific id.
 
Method Summary
static void main(java.lang.String[] args)
          test the RegisterMessage class.
 java.lang.String paramString()
          return a printable String representation of the RegisterMessage.
 
Methods inherited from class EDU.gatech.cc.is.communication.Message
clone, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

val

public int val
Our ID to register.
Constructor Detail

RegisterMessage

public RegisterMessage()
create a RegisterMessage with default value.

RegisterMessage

public RegisterMessage(int i)
create a RegisterMessage with specific id.
Parameters:
n - int, the id of the sender.
Method Detail

paramString

public java.lang.String paramString()
return a printable String representation of the RegisterMessage.
Overrides:
paramString in class Message
Returns:
the String representation

main

public static void main(java.lang.String[] args)
test the RegisterMessage class.