EDU.gatech.cc.is.communication
Class StringMessage
java.lang.Object
|
+--EDU.gatech.cc.is.communication.Message
|
+--EDU.gatech.cc.is.communication.StringMessage
- public class StringMessage
- extends Message
- implements java.lang.Cloneable, java.io.Serializable
A String message communicated to/from a robot.
Copyright
(c)1998 Tucker Balch
- See Also:
- Serialized Form
Field Summary |
java.lang.String |
val
the string to send. |
Constructor Summary |
StringMessage()
create a StringMessage with default values. |
StringMessage(java.lang.String v)
create a StringMessage |
Method Summary |
static void |
main(java.lang.String[] args)
test the StringMessage class. |
java.lang.String |
paramString()
return a printable String representation of the StringMessage. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
val
public java.lang.String val
- the string to send.
StringMessage
public StringMessage()
- create a StringMessage with default values.
StringMessage
public StringMessage(java.lang.String v)
- create a StringMessage
- Parameters:
v
- String, the string to send.
paramString
public java.lang.String paramString()
- return a printable String representation of the StringMessage.
- Overrides:
- paramString in class Message
- Returns:
- the String representation
main
public static void main(java.lang.String[] args)
- test the StringMessage class.