|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.managers.AbstractAudioManager
jmri.jmrit.audio.DefaultAudioManager
public class DefaultAudioManager
Provide the concrete implementation for the Internal Audio Manager.
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.
| Field Summary | |
|---|---|
(package private) ShutDownTask |
audioShutDownTask
|
| Fields inherited from class jmri.managers.AbstractManager |
|---|
_tsys, _tuser |
| Fields inherited from interface jmri.AudioManager |
|---|
MAX_BUFFERS, MAX_LISTENERS, MAX_SOURCES |
| Fields inherited from interface jmri.Manager |
|---|
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, ENTRYEXIT, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS |
| Constructor Summary | |
|---|---|
DefaultAudioManager()
|
|
| Method Summary | |
|---|---|
void |
cleanUp()
Perform any clean-up operations |
protected Audio |
createNewAudio(String systemName,
String userName)
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked. |
void |
deregister(NamedBean s)
Forget a NamedBean Object created outside the manager. |
AudioFactory |
getActiveAudioFactory()
Returns the currently active AudioFactory object. |
List<String> |
getSystemNameList(char subType)
Get a list of specified Audio sub-type objects' system names. |
List<String> |
getSystemNameList(int subType)
Deprecated. |
String |
getSystemPrefix()
Provides access to the system prefix string. |
int |
getXMLOrder()
|
void |
init()
Method used to initialise the manager |
static DefaultAudioManager |
instance()
Return the current instance of this object. |
| Methods inherited from class jmri.managers.AbstractAudioManager |
|---|
getAudio, getBySystemName, getByUserName, newAudio, provideAudio, typeLetter |
| Methods inherited from class jmri.managers.AbstractManager |
|---|
addPropertyChangeListener, dispose, firePropertyChange, getBeanBySystemName, getBeanByUserName, getInstanceBySystemName, getInstanceByUserName, getNamedBean, getNamedBeanList, getSystemNameArray, getSystemNameList, makeSystemName, propertyChange, register, registerSelf, removePropertyChangeListener, systemLetter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.AudioManager |
|---|
getSystemNameList |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, dispose, getBeanBySystemName, getBeanByUserName, getNamedBean, getNamedBeanList, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Field Detail |
|---|
ShutDownTask audioShutDownTask
| Constructor Detail |
|---|
public DefaultAudioManager()
| Method Detail |
|---|
public int getXMLOrder()
getXMLOrder in interface ManagergetXMLOrder in class AbstractManagerpublic String getSystemPrefix()
Manager
protected Audio createNewAudio(String systemName,
String userName)
throws AudioException
AbstractAudioManager
createNewAudio in class AbstractAudioManagersystemName - Audio object system name (e.g. IAS1, IAB4)userName - Audio object user name
AudioException - if error occurs during creation@Deprecated public List<String> getSystemNameList(int subType)
AudioManager
subType - sub-type to retrieve
public List<String> getSystemNameList(char subType)
AudioManager
subType - sub-type to retrieve
public void init()
public void deregister(NamedBean s)
AbstractManagerThe non-system-specific RouteManager uses this method.
deregister in interface Managerderegister in class AbstractManagerpublic void cleanUp()
AudioManager
public AudioFactory getActiveAudioFactory()
AudioManagerAn Audio factory is responsible for the creation of implementation specific audio objects.
public static DefaultAudioManager instance()
If not existing, create a new instance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||