JanosVM v1.0 API

edu.utah.janosvm.kit.comm.amiga
Class Facsimile

java.lang.Object
  |
  +--edu.utah.janosvm.sys.ListNode
        |
        +--edu.utah.janosvm.kit.comm.amiga.Facsimile
All Implemented Interfaces:
java.lang.Cloneable, CrossTeamCloneable

public class Facsimile
extends ListNode
implements CrossTeamCloneable, java.lang.Cloneable

NOTE: Facsimile is used since the message will be copied into the other team instead of just sharing like a Message.


Field Summary
private  boolean reply
          Indicates whether or not this is a reply message.
private  FaxPortHandle replyPort
          The FaxPort that is waiting to receive a reply.
 
Fields inherited from class edu.utah.janosvm.sys.ListNode
pred, succ
 
Constructor Summary
Facsimile()
           
 
Method Summary
 java.lang.Object clone()
          Clone a ListNode.
 FaxPortHandle getReplyPort()
           
 boolean isReply()
           
protected  void reply()
          Send this fax back as a reply.
(package private)  void setReplyPort(FaxPort mp)
          Set the reply port for this fax.
 void setReplyPort(FaxPortHandle mp)
          Set the reply port for this fax.
 java.lang.String toString()
           
 
Methods inherited from class edu.utah.janosvm.sys.ListNode
append, inList, prepend, remove
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

replyPort

private FaxPortHandle replyPort
The FaxPort that is waiting to receive a reply.

reply

private boolean reply
Indicates whether or not this is a reply message.
Constructor Detail

Facsimile

public Facsimile()
Method Detail

setReplyPort

public void setReplyPort(FaxPortHandle mp)
Set the reply port for this fax.
Parameters:
mp - The port to expect replies on.

setReplyPort

void setReplyPort(FaxPort mp)
Set the reply port for this fax. Package access since we don't want people to be able to change the reply port on a message they've received. XXX Eh? Do we really care?
Parameters:
mp - The port to expect replies on.

getReplyPort

public FaxPortHandle getReplyPort()
Returns:
The reply port for this fax.

isReply

public boolean isReply()
Returns:
Whether or not this fax is a reply to another.

reply

protected void reply()
              throws DeadTeamException,
                     TeamEjectionException
Send this fax back as a reply.
Throws:
Throws - DeadTeamException if the destination port's owner team is dead.

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

toString

public java.lang.String toString()
Overrides:
toString in class ListNode

JanosVM v1.0 API

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