Class AudioCommand

java.lang.Object
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.

  • Constructor Details

    • 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 Details

    • 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