Package jmri.jmrit.audio
Class AudioCommand
- java.lang.Object
-
- jmri.jmrit.audio.AudioCommand
-
public class AudioCommand extends java.lang.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.
-
-
Constructor Summary
Constructors Constructor Description AudioCommand(Audio audio, int command)
Constructor to process a command on an Audio object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Audio
getAudio()
Return the Audio object that this command refers toint
getCommand()
Return the action to performjava.lang.String
toString()
-
-
-
Constructor Detail
-
AudioCommand
public AudioCommand(Audio audio, int command)
Constructor to process a command on an Audio object- Parameters:
audio
- Audio object to processcommand
- 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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-