uk.org.toot.transport
Class DefaultTransport

java.lang.Object
  extended by uk.org.toot.transport.DefaultTransport
All Implemented Interfaces:
TimeSource, Transport, TransportListener

public class DefaultTransport
extends java.lang.Object
implements Transport

A default concrete implementation of a Transport.


Constructor Summary
DefaultTransport()
           
 
Method Summary
 void addTransportListener(TransportListener listener)
          Add a TransportListener to this Transport.
 long getMicrosecondLocation()
          called by Slaves
 boolean isPlaying()
          Reports whether this Transport is playing.
 boolean isRecording()
          Reports whether this Transport is recording.
 void locate(long microseconds)
          Called when the transport locates to a new microsecond time.
 void play()
          Called when the transport begins playing.
 void record(boolean rec)
          Called when the transport record mode changes.
 void removeTransportListener(TransportListener listener)
          Removes a TransportListener from this Transport.
 void stop()
          Called when the transport has stopped.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTransport

public DefaultTransport()
Method Detail

stop

public void stop()
Description copied from interface: TransportListener
Called when the transport has stopped.

Specified by:
stop in interface TransportListener

play

public void play()
Description copied from interface: TransportListener
Called when the transport begins playing.

Specified by:
play in interface TransportListener

record

public void record(boolean rec)
Description copied from interface: TransportListener
Called when the transport record mode changes.

Specified by:
record in interface TransportListener

locate

public void locate(long microseconds)
Description copied from interface: TransportListener
Called when the transport locates to a new microsecond time.

Specified by:
locate in interface TransportListener

isPlaying

public boolean isPlaying()
Description copied from interface: Transport
Reports whether this Transport is playing.

Specified by:
isPlaying in interface Transport

isRecording

public boolean isRecording()
Description copied from interface: Transport
Reports whether this Transport is recording.

Specified by:
isRecording in interface Transport

addTransportListener

public void addTransportListener(TransportListener listener)
Description copied from interface: Transport
Add a TransportListener to this Transport.

Specified by:
addTransportListener in interface Transport

removeTransportListener

public void removeTransportListener(TransportListener listener)
Description copied from interface: Transport
Removes a TransportListener from this Transport.

Specified by:
removeTransportListener in interface Transport

getMicrosecondLocation

public long getMicrosecondLocation()
called by Slaves

Specified by:
getMicrosecondLocation in interface TimeSource


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.