com.amx.duet.impl.marantz.dv7600.v1_0_0
Class MarantzDV7600

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.amx.duet.core.osgi.Service
              extended bycom.amx.duet.devicesdk.base.Module
                  extended bycom.amx.duet.devicesdk.DiscDevice
                      extended bycom.amx.duet.impl.marantz.dv7600.v1_0_0.MarantzDV7600
All Implemented Interfaces:
org.osgi.service.device.Device, com.amx.duet.core.master.netlinx.IDataListener, com.amx.duet.devicesdk.IDiscDevice, com.amx.duet.devicesdk.component.IDiscDeviceComponent, com.amx.duet.devicesdk.component.IDiscDeviceComponentListener, com.amx.duet.devicesdk.component.IDiscTransportComponent, com.amx.duet.devicesdk.component.IDiscTransportComponentListener, com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600, com.amx.duet.devicesdk.component.IMenuComponent, com.amx.duet.devicesdk.component.IMenuComponentListener, com.amx.duet.devicesdk.base.IModule, com.amx.duet.devicesdk.base.IModuleComponent, com.amx.duet.devicesdk.base.IModuleComponent2, com.amx.duet.devicesdk.base.IModuleComponentListener, com.amx.duet.devicesdk.component.IPowerComponent, com.amx.duet.devicesdk.component.IPowerComponentListener, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, com.amx.duet.core.master.SystemConstants, com.amx.duet.util.TimelineListener, com.amx.duet.util.TimerListener

public class MarantzDV7600
extends com.amx.duet.devicesdk.DiscDevice
implements com.amx.duet.core.master.netlinx.IDataListener, com.amx.duet.util.TimelineListener, com.amx.duet.util.TimerListener, com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.amx.duet.core.osgi.Service
DEFAULT_OBJECT_PROPERTY, DEFAULT_OBJECT_RANK, PROPKEY_LOCATION, PROPKEY_MANUFACTURER, PROPKEY_MODEL, PROPKEY_OBJECTCLASS, STD_HTTP_SRV_CLS
 
Fields inherited from interface org.osgi.service.device.Device
MATCH_NONE
 
Fields inherited from interface com.amx.duet.core.master.SystemConstants
B_BYTE_BUFF, B_WORD_BUFF, BUNDLE_NAME, BUNDLE_VERSION, DEFAULT_CHANNEL_CNT, DEFAULT_LEVEL_CNT, DEFAULT_STR_SIZE, DEVICE_CATEGORY, DEVICE_CHANNELS, DEVICE_CLASS, DEVICE_GUID, DEVICE_INTERFACE, DEVICE_LEVELS, DEVICE_MAKE, DEVICE_MODEL, DEVICE_REVISION, DEVICE_SDKCLASS, DEVICE_SDKINTERFACE, DEVICE_SERIAL, DEVICE_SERVICE, DEVICE_UUID, DUET_DEVICE, DUET_DEVICESDK_PKG, DUET_MAKE, DUET_MODEL, DUET_MODULE, DUET_REVISION, DYNAMIC_TYPE, IP_ADDRESS, L_BYTE, L_CHAR, L_DOUBLE, L_FLOAT, L_INTEGER, L_LONG, L_SINTEGER, L_SLONG, L_UNKNOWN, L_WIDECHAR, LICENSE_KEY, MATCH_CATEGORY, MATCH_CLASS, MATCH_GUID, MATCH_MAKE, MATCH_MODEL, MATCH_REVISION, MATCH_SERIAL, PHYSICAL_DEVICE, ROUTER_MAKE, ROUTER_MODEL, ROUTER_REVISION, ROUTER_SERVICE
 
Constructor Summary
MarantzDV7600()
          Default Constructor
MarantzDV7600(org.osgi.framework.BundleContext bctxt, com.amx.duet.da.NetLinxDevice nd, java.util.Properties props)
           
 
Method Summary
 void cycleAspectRatio()
          Cycles the Aspect Ratio
 void cycleDiscTray()
          Cycles the disc tray.
 void cyclePowerInternal()
          Cycles the power
 void cycleRandom()
          Sets the current random state to the next random state.
 void cycleRepeat()
          Sets the current repeat state to the next random state.
 void cycleScanSpeed()
          Select the next available scan speed.
 void cycleSearchMenu()
          Cycles the Search
 void cycleVideoMute()
          Cycles Video Mute
 void dispose()
          Dispose
 com.amx.duet.devicesdk.type.AspectRatio getAspectRatio()
          Get the current Aspect Ratio
 java.lang.String getAspectRatioDisplayText(com.amx.duet.devicesdk.type.AspectRatio aspectRatio)
          Get the Aspect Ratio Display Text
 java.util.List getAspectRatioValues()
          Get the list of supported Aspect Ratio
 java.lang.String getFWVersion()
          Get the device's firmware version.
 void handleChannelEvent(com.amx.duet.core.master.netlinx.Event obj, int channel, boolean on)
           
 void handleCommandEvent(com.amx.duet.core.master.netlinx.Event obj, java.lang.String cmd)
           
 void handleDataEvent(com.amx.duet.core.master.netlinx.Event arg0)
           
 void handleTimelineEvent(com.amx.duet.util.Timeline arg0)
           
 void handleTimerEvent(com.amx.duet.util.Timer arg)
           
 boolean isDataInitialized()
          Checks if the data is initialized
 boolean isDeviceOnLine()
          Checks if the device is online
 boolean isVideoMuteOn()
          Returns the state of Video Mute
 void moveMenuCursor(com.amx.duet.devicesdk.type.Navigation direction)
          Move menu cursor
 void passThru(byte[] buffer)
          Allows the capability of sending commands directly to whatever unit is attached without processing by the module.
 void pressMenuButton(com.amx.duet.devicesdk.type.Button button)
          Press menu button.
 boolean queryDiscProperties()
          Queries for the current disc properties
 void refresh()
          Regenerates all the appropriate events
 void reinitialize()
          Reinitializes the module data
 void setAspectRatio(com.amx.duet.devicesdk.type.AspectRatio ar)
          Set Aspect Ratio
 void setDiscTransport(com.amx.duet.devicesdk.type.DiscTransport transport)
          Set disc transport
 void setPowerInternal(com.amx.duet.devicesdk.type.PowerState ps)
          Set the power state
 void setTitleCounterNotificationOn(boolean state)
          Set the title counter notification
 void setTrackCounterNotificationOn(boolean state)
          Set the track counter notification
 void setVideoMuteOn(boolean state)
          Set Video Mute
 
Methods inherited from class com.amx.duet.devicesdk.DiscDevice
addDiscDeviceComponentListener, addDiscTransportComponentListener, addMenuComponentListener, addPowerComponentListener, cyclePower, getDiscCapacity, getDiscDeviceComponent, getDiscDeviceComponentCount, getDiscInfo, getDiscPropertyKeys, getDiscTransport, getDiscTransportComponent, getDiscTransportComponentCount, getMenuComponent, getMenuComponentCount, getPower, getPowerComponent, getPowerComponentCount, getRandomState, getRepeatState, getTitleInfo, getTitlePropertyKeys, getTrackInfo, getTrackPropertyKeys, isTitleCounterNotificationOn, isTrackCounterNotificationOn, nextDisc, previousDisc, processDiscInfoEvent, processDiscPropertiesEvent, processDiscTransportEvent, processPowerEvent, processRandomStateEvent, processRepeatStateEvent, processTitleCounterEvent, processTitleInfoEvent, processTitlePropertiesEvent, processTrackCounterEvent, processTrackInfoEvent, processTrackPropertiesEvent, queryDiscProperty, queryTitleProperties, queryTitleProperty, queryTrackProperties, queryTrackProperty, removeDiscDeviceComponentListener, removeDiscTransportComponentListener, removeMenuComponentListener, removePowerComponentListener, selectMenuItem, setDisc, setPlayPosition, setPlayPosition, setPlayPosition, setPlayPosition, setPlayPosition, setPower, setPowerSensor, setPowerSensor, setRandomState, setRepeatState
 
Methods inherited from class com.amx.duet.devicesdk.base.Module
addModuleComponentListener, cancelTimer, createNetLinxDevice, createNetLinxDevice, finalize, getDeviceDateTime, getProperty, getProperty, getProperty, getProperty, getProperty, getTimerRepeat, getTimerTimeout, getVersion, handleAdvancedEvent, handleButtonEvent, handleCustomEvent, handleDataEvent, handleLevelEvent, handleStringEvent, initModule, isPassBackOn, isPortOnLine, loadProperties, loadProperties, noDriverFound, processAdvancedEvent, processDataInitializedEvent, processDebugEvent, processDeviceOnLineEvent, processPassBackEvent, processPortOnLineEvent, removeModuleComponentListener, setDeviceDateTime, setPassBackOn, setProperty, setTimerRepeat, setTimerTimeout, startTimer
 
Methods inherited from class com.amx.duet.core.osgi.Service
addListener, getDebugState, initService, log, log, log, log, registerServlet, removeListener, setDebugState, unregisterServlet
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.amx.duet.devicesdk.component.IDiscDeviceComponent
addDiscDeviceComponentListener, getDiscCapacity, getDiscDeviceComponent, getDiscDeviceComponentCount, getDiscInfo, getRandomState, getRepeatState, getTitleInfo, isTitleCounterNotificationOn, nextDisc, previousDisc, queryTitleProperties, removeDiscDeviceComponentListener, setDisc, setPlayPosition, setPlayPosition, setPlayPosition, setPlayPosition, setRandomState, setRepeatState
 
Methods inherited from interface com.amx.duet.devicesdk.component.IDiscDeviceComponentListener
processDiscInfoEvent, processDiscPropertiesEvent, processRandomStateEvent, processRepeatStateEvent, processTitleCounterEvent, processTitleInfoEvent, processTitlePropertiesEvent
 
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.IMenuComponent
addMenuComponentListener, getMenuComponent, getMenuComponentCount, removeMenuComponentListener, selectMenuItem
 
Methods inherited from interface com.amx.duet.devicesdk.component.IDiscTransportComponent
addDiscTransportComponentListener, getDiscTransport, getDiscTransportComponent, getDiscTransportComponentCount, getTrackInfo, isTrackCounterNotificationOn, queryTrackProperties, removeDiscTransportComponentListener, setPlayPosition
 
Methods inherited from interface com.amx.duet.devicesdk.component.IDiscTransportComponentListener
processDiscTransportEvent, processTrackCounterEvent, processTrackInfoEvent, processTrackPropertiesEvent
 
Methods inherited from interface com.amx.duet.devicesdk.base.IModuleComponent
getDebugState, setDebugState
 

Constructor Detail

MarantzDV7600

public MarantzDV7600()
Default Constructor


MarantzDV7600

public MarantzDV7600(org.osgi.framework.BundleContext bctxt,
                     com.amx.duet.da.NetLinxDevice nd,
                     java.util.Properties props)
Parameters:
bctxt -
nd -
props -
Method Detail

isDeviceOnLine

public boolean isDeviceOnLine()
Checks if the device is online

Specified by:
isDeviceOnLine in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
boolean [TRUE,FALSE]

isDataInitialized

public boolean isDataInitialized()
Checks if the data is initialized

Specified by:
isDataInitialized in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
boolean [TRUE,FALSE]

refresh

public void refresh()
Regenerates all the appropriate events

Specified by:
refresh in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

reinitialize

public void reinitialize()
Reinitializes the module data

Specified by:
reinitialize in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

getFWVersion

public java.lang.String getFWVersion()
Get the device's firmware version.

Specified by:
getFWVersion in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
String

cycleSearchMenu

public void cycleSearchMenu()
Cycles the Search

Specified by:
cycleSearchMenu in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

cycleVideoMute

public void cycleVideoMute()
Cycles Video Mute

Specified by:
cycleVideoMute in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

isVideoMuteOn

public boolean isVideoMuteOn()
Returns the state of Video Mute

Specified by:
isVideoMuteOn in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
boolean [TRUE,FALSE]

setVideoMuteOn

public void setVideoMuteOn(boolean state)
Set Video Mute

Specified by:
setVideoMuteOn in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
state - [TRUE,FALSE]

cycleAspectRatio

public void cycleAspectRatio()
Cycles the Aspect Ratio

Specified by:
cycleAspectRatio in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

setAspectRatio

public void setAspectRatio(com.amx.duet.devicesdk.type.AspectRatio ar)
Set Aspect Ratio

Specified by:
setAspectRatio in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
ar - [WIDESCREEN,NORMAL,ANAMORPHIC] p=com.amx.duet.impl.marantz.dv7600.v1_0_0.MarantzDV7600AspectRatio [SQUEEZE]

getAspectRatio

public com.amx.duet.devicesdk.type.AspectRatio getAspectRatio()
Get the current Aspect Ratio

Specified by:
getAspectRatio in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
AspectRatio [WIDESCREEN,NORMAL,ANAMORPHIC] p=com.amx.duet.impl.marantz.dv7600.v1_0_0.MarantzDV7600AspectRatio [SQUEEZE]

getAspectRatioDisplayText

public java.lang.String getAspectRatioDisplayText(com.amx.duet.devicesdk.type.AspectRatio aspectRatio)
Get the Aspect Ratio Display Text

Specified by:
getAspectRatioDisplayText in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
aspectRatio - [WIDESCREEN,NORMAL,ANAMORPHIC] p=com.amx.duet.impl.marantz.dv7600.v1_0_0.MarantzDV7600AspectRatio [SQUEEZE]
Returns:
String

getAspectRatioValues

public java.util.List getAspectRatioValues()
Get the list of supported Aspect Ratio

Specified by:
getAspectRatioValues in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
List

cyclePowerInternal

public void cyclePowerInternal()
Cycles the power

Specified by:
cyclePowerInternal in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

setPowerInternal

public void setPowerInternal(com.amx.duet.devicesdk.type.PowerState ps)
Set the power state

Specified by:
setPowerInternal in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
ps - [ON,OFF]

pressMenuButton

public void pressMenuButton(com.amx.duet.devicesdk.type.Button button)
Press menu button.

Specified by:
pressMenuButton in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
button - [ENTER,RETURN,CLEAR,EXIT,DIGIT_0,DIGIT_1,DIGIT_2,DIGIT_3,DIGIT_4,DIGIT_5,DIGIT_6,DIGIT_7,DIGIT_8,DIGIT9] p=com.amx.duet.devicesdk.type.ExtendedButton[MENU,SUBTITLE,AUDIO,PLUS_10,DISPLAY,DIMMER,PAGE_UP,PAGE_DOWN,SETUP] p=com.amx.duet.devicesdk.type.DiscButton [ANGLE,AB_REPEAT,ZOOM,PROGRAM,TOP_MENU]

moveMenuCursor

public void moveMenuCursor(com.amx.duet.devicesdk.type.Navigation direction)
Move menu cursor

Specified by:
moveMenuCursor in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
direction - [UP,DOWN,LEFT,RIGHT]

cycleDiscTray

public void cycleDiscTray()
Cycles the disc tray.

Specified by:
cycleDiscTray in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

cycleRandom

public void cycleRandom()
Sets the current random state to the next random state.

Specified by:
cycleRandom in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

cycleRepeat

public void cycleRepeat()
Sets the current repeat state to the next random state.

Specified by:
cycleRepeat in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

cycleScanSpeed

public void cycleScanSpeed()
Select the next available scan speed. For this method to cycle the scan speed, the transport mode must be DiscTransport.SCAN_FWD or DiscTransport.SCAN_REV

Specified by:
cycleScanSpeed in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

queryDiscProperties

public boolean queryDiscProperties()
Queries for the current disc properties

Specified by:
queryDiscProperties in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Returns:
boolean [TRUE,FALSE]

setDiscTransport

public void setDiscTransport(com.amx.duet.devicesdk.type.DiscTransport transport)
Set disc transport

Specified by:
setDiscTransport in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
transport - [STOP,PLAY,PAUSE,SCAN_FWD,SCAN_REV,SLOW_FWD,SLOW_REV,NEXT,PREVIOUS,FRAME_FWD]

setTitleCounterNotificationOn

public void setTitleCounterNotificationOn(boolean state)
Set the title counter notification

Specified by:
setTitleCounterNotificationOn in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
state - [TRUE, FALSE]

setTrackCounterNotificationOn

public void setTrackCounterNotificationOn(boolean state)
Set the track counter notification

Specified by:
setTrackCounterNotificationOn in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
state - [TRUE, FALSE]

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: Do not send the start/terminating/checksum bytes

Specified by:
passThru in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600
Parameters:
buffer -

dispose

public void dispose()
Dispose

Specified by:
dispose in interface com.amx.duet.impl.marantz.dv7600.v1_0_0.IMarantzDV7600

handleChannelEvent

public void handleChannelEvent(com.amx.duet.core.master.netlinx.Event obj,
                               int channel,
                               boolean on)
Specified by:
handleChannelEvent in interface com.amx.duet.devicesdk.base.IModuleComponent2

handleCommandEvent

public void handleCommandEvent(com.amx.duet.core.master.netlinx.Event obj,
                               java.lang.String cmd)
Specified by:
handleCommandEvent in interface com.amx.duet.devicesdk.base.IModuleComponent2

handleDataEvent

public void handleDataEvent(com.amx.duet.core.master.netlinx.Event arg0)
Specified by:
handleDataEvent in interface com.amx.duet.core.master.netlinx.IDataListener

handleTimelineEvent

public void handleTimelineEvent(com.amx.duet.util.Timeline arg0)
Specified by:
handleTimelineEvent in interface com.amx.duet.util.TimelineListener

handleTimerEvent

public void handleTimerEvent(com.amx.duet.util.Timer arg)
Specified by:
handleTimerEvent in interface com.amx.duet.util.TimerListener