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. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait,
wait0 |
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.
FaxPortBackEnd
public 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
public 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.
getSignalNumber
public int getSignalNumber()
- Returns:
- The signal number that will get signalled when a fax is
received.
putFacsimile
public void putFacsimile(Facsimile fax)
- Parameters:
fax
- The Facsimile to add to the queue.
getFacsimile
public Facsimile getFacsimile()
- Returns:
- The Facsimile at the head of the queue or null if the queue
is empty.
waitForFacsimile
public Facsimile waitForFacsimile(long timeout)
- Wait for and return the first Facsimile received.
- Returns:
- The first facsimile.
finalize
protected void finalize()
- Overrides:
- finalize in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
- toString in class Exportable
This documentation is Copyright (C) 2000-2002 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 Mar 17, 2002