jmri.jmrit.audio
Interface AudioThread

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractAudioListener.AudioListenerMoveThread, AbstractAudioSource.AudioSourceFadeThread, AbstractAudioSource.AudioSourceMoveThread, AbstractAudioThread, AudioCommandThread

public interface AudioThread
extends Runnable

Interface defining public methods and variables used in AudioThread classes


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Matthew Harris copyright (c) 2009

Field Summary
static boolean GET
          Used to return value from synchronised boolean methods
static boolean NA
          Used as parameter when returning value from synchronised boolean methods
static boolean SET
          Used to set value in synchronised boolean methods
 
Method Summary
 boolean alive()
          Checks if the thread is still alive (or in the process of shutting down) Once cleanup has finished, this should return False
 void die()
          Method used to tell the thread that it should shutdown
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

GET

static final boolean GET
Used to return value from synchronised boolean methods

See Also:
Constant Field Values

SET

static final boolean SET
Used to set value in synchronised boolean methods

See Also:
Constant Field Values

NA

static final boolean NA
Used as parameter when returning value from synchronised boolean methods

See Also:
Constant Field Values
Method Detail

alive

boolean alive()
Checks if the thread is still alive (or in the process of shutting down)

Once cleanup has finished, this should return False

Returns:
true, while thread is alive; false, when all cleanup has finished

die

void die()
Method used to tell the thread that it should shutdown



Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads