net.charlesames.music.common
Class Root
java.lang.Object
net.charlesames.music.common.Root
public class Root
- extends java.lang.Object
Singleton class which maintains a list of all ensemble entities currently in memory.
- Author:
- Charles Ames
|
Field Summary |
static java.lang.String |
XML_URL
XML URL |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_URL
public static final java.lang.String XML_URL
- XML URL
- See Also:
- Constant Field Values
getSingleton
public static Root getSingleton()
- Returns:
- The single instance of this class.
getVersion
public static java.lang.String getVersion()
- Returns:
- The current project version.
getEnsemble
public Ensemble getEnsemble()
- Returns:
- The ensemble to which future operations will apply.
setEnsemble
public void setEnsemble(Ensemble ensemble)
- Parameters:
ensemble - The ensemble to which future operations will apply.
getEntities
public java.util.SortedMap<java.lang.Long,EnsembleEntity> getEntities()
- Returns:
- The Map of id's to Ensemble entities in memory.
getEntity
public EnsembleEntity getEntity(java.lang.Long entityID)
- Parameters:
entityID - The desired ID
- Returns:
- The ensemble entity with the desired ID.
- Throws:
java.lang.IllegalArgumentException - When the ensemble does not contain an entity with the desired id.