All Packages Class Hierarchy This Package Previous Next Index
Class EDU.gatech.cc.is.communication.Message
java.lang.Object
|
+----EDU.gatech.cc.is.communication.Message
- public class Message
- extends Object
- implements Cloneable, Serializable
message communicated to/from a robot.
Copyright
(c)1998 Tucker Balch
- Version:
- $Revision: 1.8 $
- Author:
- Tucker Balch
-
BROADCAST
- Message type.
-
MULTICAST
- Message type.
-
receivers
- IDs of the receivers.
-
sender
- the ID of the sender.
-
type
- the type of message.
-
UNICAST
- Message type.
-
Message()
- create a Message with default values.
-
clone()
- clone the message
-
main(String[])
- test the Message class.
-
paramString()
- return a printable String representation of the Message.
-
toString()
- return a printable String representation of the Message.
BROADCAST
public static final int BROADCAST
- Message type.
MULTICAST
public static final int MULTICAST
- Message type.
UNICAST
public static final int UNICAST
- Message type.
type
public int type
- the type of message. Default is BROADCAST.
sender
public int sender
- the ID of the sender. Ranges from 1 to the number of agents in
the group.
receivers
public int receivers[]
- IDs of the receivers. Ignored for broadcast messages.
Message
public Message()
- create a Message with default values.
toString
public String toString()
- return a printable String representation of the Message.
- Returns:
- the String representation
- Overrides:
- toString in class Object
paramString
public String paramString()
- return a printable String representation of the Message.
- Returns:
- the String representation
clone
public Object clone() throws CloneNotSupportedException
- clone the message
- Returns:
- the clone
- Throws: CloneNotSupportedException
- if it isn't supported.
- Overrides:
- clone in class Object
main
public static void main(String args[])
- test the Message class.
All Packages Class Hierarchy This Package Previous Next Index