public class UnitManager extends java.lang.Object implements Configurable
| Modifier and Type | Field and Description |
|---|---|
static Unit |
SILENCE
The silence unit
|
static java.lang.String |
SILENCE_NAME
The name for the silence unit
|
| Constructor and Description |
|---|
UnitManager() |
| Modifier and Type | Method and Description |
|---|---|
Unit |
getUnit(java.lang.String name)
Gets or creates a unit from the unit pool
|
Unit |
getUnit(java.lang.String name,
boolean filler)
Gets or creates a unit from the unit pool
|
Unit |
getUnit(java.lang.String name,
boolean filler,
Context context)
Gets or creates a unit from the unit pool
|
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
public static final java.lang.String SILENCE_NAME
public static final Unit SILENCE
public void newProperties(PropertySheet ps) throws PropertyException
ConfigurablenewProperties in interface Configurableps - a property sheet holding the new dataPropertyException - if there is a problem with the properties.public Unit getUnit(java.lang.String name, boolean filler, Context context)
name - the name of the unitfiller - true if the unit is a filler unitcontext - the context for this unitpublic Unit getUnit(java.lang.String name, boolean filler)
name - the name of the unitfiller - true if the unit is a filler unitpublic Unit getUnit(java.lang.String name)
name - the name of the unit