mil.navy.nps.dis
Interface PduSubscriber
- public interface PduSubscriber
PduSubscriber interface for receivePDU () methods.
This is an interface, a list of methods that a class can implement.
If the class does in fact implement all of the methods declared here,
it is said to implement the interface.
The interface here consists of a single method, receivePDU(). Presumably
this object has registered itself with a PDUPublisher object via
an addListener() method. That object will in turn send PDUs to us.
The intention here is to closely match the technique and methods
used in the Java 1.1 event model.
This is an example of the Observer pattern. See _Design Patterns_,
Gamma, Helm, Johnson, & Vlissides, pp. 293-303.
- Version:
- 1.0
- Author:
- Don McGregor (http://www.npsnet.org/~mcgredo)
- Location:
- Web:
http://www.web3d.org/WorkingGroups/vrtp/mil/navy/nps/dis/PduPublisher.java
- or locally:
~/mil/navy/nps/dis/PduPublisher.java
HISTORY
11/9/98 DMcG new
- See Also:
PduPublisher
receivePDU
public void receivePDU(ProtocolDataUnit pPDU)
- Receive a PDU that has been forwarded to us by a PduPublisher.