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

Variable Index

 o BROADCAST
Message type.
 o MULTICAST
Message type.
 o receivers
IDs of the receivers.
 o sender
the ID of the sender.
 o type
the type of message.
 o UNICAST
Message type.

Constructor Index

 o Message()
create a Message with default values.

Method Index

 o clone()
clone the message
 o main(String[])
test the Message class.
 o paramString()
return a printable String representation of the Message.
 o toString()
return a printable String representation of the Message.

Variables

 o BROADCAST
 public static final int BROADCAST
Message type.

 o MULTICAST
 public static final int MULTICAST
Message type.

 o UNICAST
 public static final int UNICAST
Message type.

 o type
 public int type
the type of message. Default is BROADCAST.

 o sender
 public int sender
the ID of the sender. Ranges from 1 to the number of agents in the group.

 o receivers
 public int receivers[]
IDs of the receivers. Ignored for broadcast messages.

Constructors

 o Message
 public Message()
create a Message with default values.

Methods

 o toString
 public String toString()
return a printable String representation of the Message.

Returns:
the String representation
Overrides:
toString in class Object
 o paramString
 public String paramString()
return a printable String representation of the Message.

Returns:
the String representation
 o clone
 public Object clone() throws CloneNotSupportedException
clone the message

Returns:
the clone
Throws: CloneNotSupportedException
if it isn't supported.
Overrides:
clone in class Object
 o main
 public static void main(String args[])
test the Message class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index