Class 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 to
      int getCommand()
      Return the action to perform
      java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object