com.amx.duet.impl.dbaudiotechnik.dbcan.dr1_0_0
Interface IDbaudiotechnikDbcan

All Superinterfaces:
com.amx.duet.devicesdk.IAmplifier, com.amx.duet.devicesdk.component.IAmplifierComponent, com.amx.duet.devicesdk.component.IAmplifierComponentListener, com.amx.duet.devicesdk.component.IPowerComponent, com.amx.duet.devicesdk.component.IPowerComponentListener, com.amx.duet.devicesdk.component.IVolumeComponent, com.amx.duet.devicesdk.component.IVolumeComponent2, com.amx.duet.devicesdk.component.IVolumeComponentListener

public interface IDbaudiotechnikDbcan
extends com.amx.duet.devicesdk.IAmplifier


Method Summary
 void cyclePowerInternal()
          Toggles the power on/off for the selected amp.
 void dispose()
          Dispose kills all timelines that are not set to null.
 java.lang.String getProperty(java.lang.String key)
          Depending on the key it will return the current Poll_Time, Subnet_ID number, Device_ID number or the Channel_No number
 void handleChannelEvent(com.amx.duet.core.master.netlinx.Event obj, int channel, boolean on)
          This method can toggle delay, EQ, load monitoring, filter 1 and filter 2 configuration, depending on the current Subnet_ID number, Device_ID number, Channel_No number, Input monitoring for E-PAC and Input monitoring for D12
 boolean isDataInitialized()
          Checks if the data is initialized
 boolean isDeviceOnLine()
          Checks if the device is online
 void log(int level, java.lang.String msg)
           
 void passThru(byte[] buffer)
          Allows the capability of sending commands directly to whatever unit is attached without processing by the module.
 void refresh()
          Regenerates all the appropriate events
 void reinitialize()
          Reinitializes the module data
 void sendComand(byte[] body, int priority)
          Toggles Input Monitoring (D12 only) on/off depending on it's current status, then queries for the new state to update TP faster
 void setPowerInternal(com.amx.duet.devicesdk.type.PowerState ps)
          Sets the power to on/off according to the Subnet ID and Device ID
 void setProperty(java.lang.String Key, java.lang.String Value)
          setProperty is used to change the polling time when using the POLLING key.
 void setVolume(int level)
          sets the volume to the specific amp according to the Subnet ID, Device ID, and Channel number in the case of a D12 amp
 void setVolumeMuteOn(boolean state)
          Sets the specific amp to mute/unmutethe according to the Subnet ID, Device ID, and Channel number in the case of a D12 amp
 void updateVolumeRampState(com.amx.duet.devicesdk.type.LevelRamp lr)
           
 
Methods inherited from interface com.amx.duet.devicesdk.component.IAmplifierComponent
addAmplifierComponentListener, getAmplifierComponent, getAmplifierComponentCount, removeAmplifierComponentListener
 
Methods inherited from interface com.amx.duet.devicesdk.component.IPowerComponent
addPowerComponentListener, cyclePower, getPower, getPowerComponent, getPowerComponentCount, removePowerComponentListener, setPower, setPowerSensor, setPowerSensor
 
Methods inherited from interface com.amx.duet.devicesdk.component.IPowerComponentListener
processPowerEvent
 
Methods inherited from interface com.amx.duet.devicesdk.component.IVolumeComponent2
cycleVolumePreset
 
Methods inherited from interface com.amx.duet.devicesdk.component.IVolumeComponent
addVolumeComponentListener, adjustVolume, cycleVolumeMute, getVolume, getVolumeComponent, getVolumeComponentCount, getVolumePreset, getVolumePresetCount, getVolumeRamp, isVolumeMuteOn, removeVolumeComponentListener, saveVolumePreset, setVolumePreset, setVolumeRamp
 
Methods inherited from interface com.amx.duet.devicesdk.component.IVolumeComponentListener
processVolumeEvent, processVolumeMuteEvent, processVolumePresetEvent, processVolumeRampEvent
 

Method Detail

isDeviceOnLine

public boolean isDeviceOnLine()
Checks if the device is online

Returns:
boolean

isDataInitialized

public boolean isDataInitialized()
Checks if the data is initialized

Returns:
boolean

refresh

public void refresh()
Regenerates all the appropriate events


reinitialize

public void reinitialize()
Reinitializes the module data


setPowerInternal

public void setPowerInternal(com.amx.duet.devicesdk.type.PowerState ps)
Sets the power to on/off according to the Subnet ID and Device ID

Specified by:
setPowerInternal in interface com.amx.duet.devicesdk.component.IPowerComponent
Parameters:
ps - [ON, OFF]

cyclePowerInternal

public void cyclePowerInternal()
Toggles the power on/off for the selected amp.

Specified by:
cyclePowerInternal in interface com.amx.duet.devicesdk.component.IPowerComponent

setVolume

public void setVolume(int level)
sets the volume to the specific amp according to the Subnet ID, Device ID, and Channel number in the case of a D12 amp

Specified by:
setVolume in interface com.amx.duet.devicesdk.component.IVolumeComponent
Parameters:
level - (0..255)

setVolumeMuteOn

public void setVolumeMuteOn(boolean state)
Sets the specific amp to mute/unmutethe according to the Subnet ID, Device ID, and Channel number in the case of a D12 amp

Specified by:
setVolumeMuteOn in interface com.amx.duet.devicesdk.component.IVolumeComponent
Parameters:
state - boolean

dispose

public void dispose()
Dispose kills all timelines that are not set to null.


setProperty

public void setProperty(java.lang.String Key,
                        java.lang.String Value)
setProperty is used to change the polling time when using the POLLING key. The default polling time is 5 second. Setting the poll time to 0 will stop the polling.

Parameters:
Key - ["Device_ID", "Subnet_ID", "Channel_No", "Poll_Time", "Secondary_Master"]
Value - Integer NOTE: Device_ID range is 0..63, Subnet_ID range is 0..7, Channel_No range is 0..2, m_secondaryMaster range 0,1 (0 = primary) and (1= secondary)

getProperty

public java.lang.String getProperty(java.lang.String key)
Depending on the key it will return the current Poll_Time, Subnet_ID number, Device_ID number or the Channel_No number

Parameters:
key - String(valid number for either Poll_Time Device_ID, Subnet_ID or Channel_No) NOTE: Subnet_ID range is 0..7, Device_ID range is 0-63, Channel_No range is 0..2

passThru

public void passThru(byte[] buffer)
Allows the capability of sending commands directly to whatever unit is attached without processing by the module. The caller must be aware of the protocol implemented by the unit to use this command. This gives the caller access to features which may not be directly supported by the module. Note: all data in passthru goes to sendComand methode, please read comments on sendComand.

Parameters:
buffer -

handleChannelEvent

public void handleChannelEvent(com.amx.duet.core.master.netlinx.Event obj,
                               int channel,
                               boolean on)
This method can toggle delay, EQ, load monitoring, filter 1 and filter 2 configuration, depending on the current Subnet_ID number, Device_ID number, Channel_No number, Input monitoring for E-PAC and Input monitoring for D12

Parameters:
obj -
channel - [300..306]
on - boolean

sendComand

public void sendComand(byte[] body,
                       int priority)
Toggles Input Monitoring (D12 only) on/off depending on it's current status, then queries for the new state to update TP faster


log

public void log(int level,
                java.lang.String msg)

updateVolumeRampState

public void updateVolumeRampState(com.amx.duet.devicesdk.type.LevelRamp lr)