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. |
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 java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
val
public int val
- Our ID to register.
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.
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.