|
jlscp v0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.linuxsampler.lscp.AbstractDevice
public abstract class AbstractDevice
This class provides default implementation of the Device interface.
| Constructor Summary | |
|---|---|
AbstractDevice()
Creates new instance of AbstractDevice |
|
| Method Summary | |
|---|---|
void |
addParameter(Parameter prm)
Adds additional parameter to this device. |
Parameter<java.lang.Boolean> |
getActiveParameter()
Gets the ACTIVE parameter. |
Parameter[] |
getAdditionalParameters()
Gets Parameter array with the additional parameters of this device. |
int |
getDeviceId()
Gets the numerical ID of this device. |
java.lang.String |
getDriverName()
Gets the driver name used by this device. |
boolean |
hasAdditionalParameters()
Determines whether this device has additional parameters. |
boolean |
isActive()
Determines whether this device is active. |
void |
setActive(boolean active)
Sets whether this audio output device is active or not. |
void |
setDeviceId(int id)
Sets the numerical ID of this device. |
void |
setDriverName(java.lang.String driver)
Sets the driver name of this device. |
java.lang.String |
toString()
Returns the numerical ID of the device. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDevice()
AbstractDevice
| Method Detail |
|---|
public int getDeviceId()
getDeviceId in interface Devicepublic void setDeviceId(int id)
id - The new numerical ID of this device.public java.lang.String getDriverName()
getDriverName in interface Devicepublic void setDriverName(java.lang.String driver)
driver - The new name for this device.public boolean isActive()
isActive in interface Devicefalse if the device is inactive and true otherwise.public void setActive(boolean active)
active - false if the device is inactive and doesn't output any sound,
true otherwise.public Parameter<java.lang.Boolean> getActiveParameter()
ACTIVE parameter.
getActiveParameter in interface DeviceParameter instance
representing the active state of the device.public void addParameter(Parameter prm)
prm - The additional parameter to be added.public Parameter[] getAdditionalParameters()
Parameter array with the additional parameters of this device.
getAdditionalParameters in interface DeviceParameter array with the additional parameters of this device.public boolean hasAdditionalParameters()
hasAdditionalParameters in interface Devicetrue if this device has additional parameters,
false otherwise.public java.lang.String toString()
toString in class java.lang.Object
|
jlscp v0.8 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||