jmri.jmrit.audio
Class AudioCommand

java.lang.Object
  extended by jmri.jmrit.audio.AudioCommand

public class AudioCommand
extends Object

Represents a queued command for later processing in the AudioController thread.


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

Constructor Summary
AudioCommand(Audio audio, int command)
          Constructor to process a command on an Audio object
 
Method Summary
 Audio getAudio()
          Return the Audio object that this command refers to
 int getCommand()
          Return the action to perform
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioCommand

public AudioCommand(Audio audio,
                    int command)
Constructor to process a command on an Audio object

Parameters:
audio - Audio object to process
command - Action to perform
Method Detail

getAudio

public Audio getAudio()
Return the Audio object that this command refers to

Returns:
Audio object to process

getCommand

public int getCommand()
Return the action to perform

Returns:
Action

toString

public String toString()
Overrides:
toString in class Object


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