Klasse AVTransportService<T extends AVTransport>

java.lang.Object
org.jupnp.support.avtransport.AbstractAVTransportService
org.jupnp.support.avtransport.impl.AVTransportService<T>
Alle implementierten Schnittstellen:
LastChangeDelegator

public class AVTransportService<T extends AVTransport> extends AbstractAVTransportService
State-machine based implementation of AVTransport service.

One logical AVTransport is represented by:

  • One AVTransportStateMachine instance that accepts the action method call as a proxy.
  • Each state machine holds several instances of AbstractState, created on instantation of the state machine. The "current" state will be the target of the action call. It is the state implementation that decides how to handle the call and what the next state is after a possible transition.
  • Each state has a reference to an implementation of AVTransport, where the state can hold information about well, the state.

Simplified, this means that each AVTransport instance ID is typically handled by one state machine, and the internal state of that machine is stored in an AVTransport.

Override the createTransport(org.jupnp.model.types.UnsignedIntegerFourBytes, org.jupnp.support.lastchange.LastChange) method to utilize a subclass of AVTransport as your internal state holder.

Autor:
Christian Bauer - Initial Contribution, Amit Kumar Mondal - Code Refactoring