package mil.navy.nps.logger; import mil.navy.nps.dis.*; /** * This is an interface for an editing pane. The idea is that * we have various subclasses of Panel that implement editing * for PDUs--a panel with the fields and layout for ESPDUs, * fire pdus, detonation PDUs, etc. This panel has to be * able to accept a PDU for editing, and be able to update a * pdu to the new values the user has typed in the fields. * This is what this interface enables--the Panel subclass * can accept a PDU, and return an updated PDU object from * the fields the user has modified. * * @author DMcG */ public interface PduEditInterface { /** * When we start editing, we need to pass in a PDU object * for the panel to edit. That's what this does. */ public void setPdu(ProtocolDataUnit pPdu); /** * when the user says we're finished editing, the values in * the fields need to be updated to the pdu object. Then we * return the PDU object. */ public ProtocolDataUnit updatedPdu(); }