gps.mvc
Class HoluxController

java.lang.Object
  extended by gps.mvc.MtkController
      extended by gps.mvc.HoluxController

public class HoluxController
extends MtkController

Controller for Holux devices (PHLX command set) like the M-1000C.

Author:
Robert Tomanek

Field Summary
 
Fields inherited from class gps.mvc.MtkController
CMD_AUTOLOG_OFF, CMD_AUTOLOG_ON, CMD_CANCEL_GETLOG, CMD_COLDSTART, CMD_EPO_CLEAR, CMD_ERASE_LOG, CMD_FACTORYRESET, CMD_HOTSTART, CMD_SET_DEVICE_NAME, CMD_SET_GPS_FIX_INTERVAL, CMD_SET_LOG_DISTANCE_INTERVAL, CMD_SET_LOG_OVERWRITE, CMD_SET_LOG_SPEED_INTERVAL, CMD_SET_LOG_TIME_INTERVAL, CMD_SET_POWERSAVE_ENABLED, CMD_SET_SBAS_ENABLED, CMD_SET_SBAS_TEST_ENABLED, CMD_STARTLOG, CMD_STOP_WAITING_FOR_ERASE, CMD_STOPLOG, CMD_WARMSTART
 
Constructor Summary
HoluxController(GpsController c, MtkModel m)
           
 
Method Summary
 boolean cmd(int cmd)
          Handles commands with no parameters Support for Holux-specific commands, otherwise delegates to standard MTK
 boolean cmd(int cmd, CmdParam param)
          Handles commands with a parameter Support for Holux-specific commands, otherwise delegates to standard MTK
 boolean isSupportedCmd(int cmd)
          Check if a command is supported.
 boolean reqData(int dataType)
          PHLX-specific implementation of requesting GPS data.
 
Methods inherited from class gps.mvc.MtkController
getLog, getLogInit, getMtkModel, logImmediate, notifyDisconnected, notifyRun, recoveryEraseLog, replyToOkToOverwrite, sendMtkBin, setAgpsData, setBinMode, setBtMacAddr, setDatumMode, setDGPSMode, setFlashUserOption, setLogFormat, setLogRequestAhead, setNMEADefaultPeriods, setNmeaMode, setNMEAPeriods
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HoluxController

public HoluxController(GpsController c,
                       MtkModel m)
Parameters:
m -
Method Detail

cmd

public boolean cmd(int cmd)
Handles commands with no parameters Support for Holux-specific commands, otherwise delegates to standard MTK

Overrides:
cmd in class MtkController
Parameters:
cmd - Command identification.
Returns:
true is command is supported.

cmd

public boolean cmd(int cmd,
                   CmdParam param)
Handles commands with a parameter Support for Holux-specific commands, otherwise delegates to standard MTK

Overrides:
cmd in class MtkController
Parameters:
cmd - Command identification.
Returns:
true is command is supported.

isSupportedCmd

public boolean isSupportedCmd(int cmd)
Description copied from class: MtkController
Check if a command is supported.

Overrides:
isSupportedCmd in class MtkController
Parameters:
cmd - Command identification.
Returns:
true is command is supported.

reqData

public boolean reqData(int dataType)
PHLX-specific implementation of requesting GPS data. For most cases delegates to a existing PMTK command while new functionality will be gradually implemented via PHLX commands.

Overrides:
reqData in class MtkController
Returns:
true if supported.