JanosVM v1.0 API

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

java.lang.Object
  |
  +--edu.utah.janosvm.sys.Exportable
        |
        +--edu.utah.janosvm.kit.comm.amiga.FaxPortBackEnd

final class FaxPortBackEnd
extends Exportable

An Exportable object that can receive Facsimile objects.


Field Summary
private  List faxQueue
          The queue of faxes received by this port.
private  SignalSet listener
          The SignalSet that should be signalled when a message is received.
private  int signalNumber
          The SignalNumber that should be signalled when a message is received.
 
Fields inherited from class edu.utah.janosvm.sys.Exportable
anonManager, owner
 
Constructor Summary
(package private) FaxPortBackEnd(SignalSet listener)
          Construct a FaxPortBackEnd with the given values.
(package private) FaxPortBackEnd(SignalSet listener, int signalNumber)
          Construct a FaxPortBackEnd with the given values.
 
Method Summary
protected  void finalize()
           
(package private)  Facsimile getFacsimile()
           
(package private)  int getSignalNumber()
           
(package private)  void putFacsimile(Facsimile fax)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.utah.janosvm.sys.Exportable
getAnonymousManager, pushOwnerReservation, returnFromOwner, setAnonymousManager, switchToOwner
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

faxQueue

private final List faxQueue
The queue of faxes received by this port.

listener

private final SignalSet listener
The SignalSet that should be signalled when a message is received.

signalNumber

private final int signalNumber
The SignalNumber that should be signalled when a message is received.
Constructor Detail

FaxPortBackEnd

FaxPortBackEnd(SignalSet listener,
               int signalNumber)
Construct a FaxPortBackEnd with the given values.
Parameters:
id - The identifier to export the FaxPortBackEnd under.
listener - The SignalSet that the FaxPortBackEnd should signal when it receives a fax.
signalNumber - The SignalNumber that the FaxPortBackEnd should signal when it receives a fax.
Throws:
Throws - DuplicateExportException if there is already an export with the given identifier.

FaxPortBackEnd

FaxPortBackEnd(SignalSet listener)
Construct a FaxPortBackEnd with the given values.
Parameters:
id - The identifier to export the FaxPortBackEnd under.
listener - The SignalSet that the FaxPortBackEnd should signal when it receives a fax.
Throws:
Throws - DuplicateExportException if there is already an export with the given identifier.
Method Detail

getSignalNumber

int getSignalNumber()
Returns:
The signal number that will get signalled when a fax is received.

putFacsimile

void putFacsimile(Facsimile fax)
Parameters:
fax - The Facsimile to add to the queue.

getFacsimile

Facsimile getFacsimile()
Returns:
The Facsimile at the head of the queue or null if the queue is empty.

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

toString

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

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