de.hfu.anybeam.networkCore

## Interface AbstractTransmissionAdapter

- All Known Subinterfaces:
    DataReceiverAdapter

      public interface AbstractTransmissionAdapter

  An adapter interface allowing a class to be informed about status updates of a `AbstractTransmission` object.
  Since:
    1.0
  Version:
    1.0
  Author:
    chrwuer

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `transmissionDone(TransmissionEvent e)` Is called when the transmission was done successfully.
    `void` | `transmissionFailed(TransmissionEvent e)` Is called when the transmission was started aborted.
    `void` | `transmissionProgressChanged(TransmissionEvent e)` Is called when the transmission progress was updated.
    `void` | `transmissionStarted(TransmissionEvent e)` Is called when the transmission was started successfully.

- - ### Method Detail

    - #### transmissionStarted

          void transmissionStarted(TransmissionEvent e)

      Is called when the transmission was started successfully.
      Parameters:
        `e` - the transmission event displaying the `AbstractTransmission` object's state

    - #### transmissionProgressChanged

          void transmissionProgressChanged(TransmissionEvent e)

      Is called when the transmission progress was updated.
      Parameters:
        `e` - the transmission event displaying the `AbstractTransmission` object's state

    - #### transmissionDone

          void transmissionDone(TransmissionEvent e)

      Is called when the transmission was done successfully.
      Parameters:
        `e` - the transmission event displaying the `AbstractTransmission` object's state

    - #### transmissionFailed

          void transmissionFailed(TransmissionEvent e)

      Is called when the transmission was started aborted. This can happen under two different circumstances
      - The transmission was canceled using `AbstractTransmission.cancelTransmission()`
      - An error occured while transmitting the data. In this case the method `TransmissionEvent.getException()` returns the exception object.
      Parameters:
        `e` - the transmission event displaying the `AbstractTransmission` object's state