edu.utah.janosvm.kit.comm.amiga
Class Message
java.lang.Object
|
+--edu.utah.janosvm.sys.ListNode
|
+--edu.utah.janosvm.kit.comm.amiga.Message
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- TeamEventMessage
- public class Message
- extends ListNode
- implements java.lang.Cloneable
Base class for simple messages that can be sent between threads.
Field Summary |
private boolean |
reply
Indicates whether or not this is a rely message. |
private MsgPort |
replyPort
The MsgPort that is waiting to receive a reply. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
replyPort
private MsgPort replyPort
- The MsgPort that is waiting to receive a reply.
reply
private boolean reply
- Indicates whether or not this is a rely message.
Message
public Message()
setReplyPort
public void setReplyPort(MsgPort mp)
- Set the reply port for this message.
- Parameters:
mp
- The port to expect replies on.
getReplyPort
public MsgPort getReplyPort()
- Returns:
- The reply port for this message.
isReply
public boolean isReply()
- Returns:
- Whether or not this message is a reply to another.
reply
public void reply()
- Send this message back as a reply.
clone
public java.lang.Object clone()
- Description copied from class:
ListNode
- Clone a ListNode. The node is cloned in isolation;
the clone is never on a list, regardless of the state
of the original.
- Overrides:
clone
in class ListNode
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003