|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.managers.AbstractAudioManager
public abstract class AbstractAudioManager
Abstract partial implementation of an AudioManager.
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 |
|---|
| 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, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS |
| Constructor Summary | |
|---|---|
AbstractAudioManager()
|
|
| Method Summary | |
|---|---|
protected abstract Audio |
createNewAudio(String systemName,
String userName)
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked. |
Audio |
getAudio(String name)
Locate via user name, then system name if needed. |
Audio |
getBySystemName(String key)
Locate an instance based on a system name. |
Audio |
getByUserName(String key)
Locate an instance based on a user name. |
Audio |
newAudio(String systemName,
String userName)
Return an instance with the specified system and user names. |
Audio |
provideAudio(String name)
Locate via user name, then system name if needed. |
char |
typeLetter()
|
| Methods inherited from class jmri.managers.AbstractManager |
|---|
addPropertyChangeListener, deregister, dispose, firePropertyChange, getBeanBySystemName, getInstanceBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, getXMLOrder, 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 |
|---|
cleanUp, getActiveAudioFactory, getSystemNameList, getSystemNameList, getSystemNameList, init |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, dispose, getBeanBySystemName, getSystemNameArray, getSystemPrefix, getXMLOrder, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Constructor Detail |
|---|
public AbstractAudioManager()
| Method Detail |
|---|
public char typeLetter()
typeLetter in interface Manager
public Audio provideAudio(String name)
throws AudioException
AudioManager
provideAudio in interface AudioManagerAudioException - if error occurs during creationpublic Audio getAudio(String name)
AudioManager
getAudio in interface AudioManagerpublic Audio getBySystemName(String key)
AudioManager
getBySystemName in interface AudioManagerkey - Audio object system name (e.g. IAS1, IAB4)
public Audio getByUserName(String key)
AudioManager
getByUserName in interface AudioManagerkey - Audio object user name
public Audio newAudio(String systemName,
String userName)
throws AudioException
AudioManagerThis will always return a valid object reference; a new object will be created if necessary. In that case:
newAudio in interface AudioManagersystemName - Audio object system name (e.g. IAS1, IAB4)userName - Audio object user name
AudioException - if error occurs during creation
protected abstract Audio createNewAudio(String systemName,
String userName)
throws AudioException
systemName - Audio object system name (e.g. IAS1, IAB4)userName - Audio object user name
AudioException - if error occurs during creation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||