|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgps.mvc.MtkModel
public class MtkModel
Model for Mtk devices. Refactoring ongoing.
Field Summary | |
---|---|
static int |
C_OK_DATUM
|
static int |
C_OK_DGPS
|
static int |
C_OK_DIST
|
static int |
C_OK_FIX
|
static int |
C_OK_FORMAT
|
static int |
C_OK_NMEA
|
static int |
C_OK_SBAS
|
static int |
C_OK_SBAS_TEST
|
static int |
C_OK_SPEED
|
static int |
C_OK_TIME
|
static int |
DATA_AGPS_STORED_RANGE
The stored AGPS data range. |
static int |
DATA_BT_MAC_ADDR
The device's BT mac address. |
static int |
DATA_DATUM_MODE
The DATUM used by the logger. |
static int |
DATA_DEVICE_NAME
The Holux name of the device. |
static int |
DATA_DGPS_MODE
The DGPS usage mode. |
static int |
DATA_FIX_PERIOD
The fix period. |
static int |
DATA_FLASH_TYPE
|
static int |
DATA_FLASH_USER_OPTION
The User Configurable Options stored in flash. |
static int |
DATA_INITIAL_LOG
Some information from the log regarding the initial log format. |
static int |
DATA_LAST_LOG_BLOCK
Some significant data in the last block. |
static int |
DATA_LOG_DISTANCE_INTERVAL
The log distance interval. |
static int |
DATA_LOG_FLASH_SECTOR_STATUS
The flash sector status. |
static int |
DATA_LOG_FLASH_STATUS
The flash status - needed for erase. |
static int |
DATA_LOG_FORMAT
Current device log format. |
static int |
DATA_LOG_OVERWRITE_STATUS
Indicates if data is in overwrite or stop mode. |
static int |
DATA_LOG_SPEED_INTERVAL
The log speed interval. |
static int |
DATA_LOG_STATUS
Get logger status. |
static int |
DATA_LOG_TIME_INTERVAL
The log time interval. |
static int |
DATA_LOG_VERSION
The Logger Version. |
static int |
DATA_MEM_PTS_LOGGED
The number of positions logged in logger memory. |
static int |
DATA_MEM_USED
Amount of memory used by the device. |
static int |
DATA_MTK_RELEASE
|
static int |
DATA_MTK_VERSION
|
static int |
DATA_NMEA_OUTPUT_PERIODS
The NMEA output period. |
static int |
DATA_POWERSAVE_STATUS
Indicates the power save status (for testing only). |
static int |
DATA_SBAS_STATUS
Indicates if SBAS satellites are used. |
static int |
DATA_SBAS_TEST_STATUS
Indicates if SBAS test satellites are used. |
boolean |
loggerIsFull
|
int |
logMemUsedPercent
|
int |
logNbrLogPts
|
Constructor Summary | |
---|---|
MtkModel(GpsModel context,
GpsLinkHandler handler)
|
Method Summary | |
---|---|
boolean |
analyseMtkBinData(MtkBinTransportMessageModel response)
|
boolean |
analyseMtkNmea(java.lang.String[] sNmea)
|
int |
getAgpsDataCount()
|
BT747Time |
getAgpsEnd2Time()
|
BT747Time |
getAgpsEndTime()
|
BT747Time |
getAgpsStart2Time()
|
BT747Time |
getAgpsStartTime()
|
java.lang.String |
getBtMacAddr()
Returns the current mac address for bluetooth (Holux 241 devices). |
GpsModel |
getContext()
|
int |
getDatum()
|
int |
getDgpsMode()
|
int |
getDtBaudRate()
|
int |
getDtGGA_Period()
|
int |
getDtGLL_Period()
|
int |
getDtGSA_Period()
|
int |
getDtGSV_Period()
|
int |
getDtMCHN_Period()
|
int |
getDtRMC_Period()
|
int |
getDtUpdateRate()
|
int |
getDtUserOptionTimesLeft()
|
int |
getDtVTG_Period()
|
int |
getDtZDA_Period()
|
int |
getEndAddr()
Get the end address for the log download. |
java.lang.String |
getFirmwareVersion()
|
java.lang.String |
getFlashDesc()
|
int |
getFlashManuProdID()
|
GpsLinkHandler |
getHandler()
|
java.lang.String |
getHoluxName()
|
int |
getLogDistanceInterval()
|
int |
getLogFixPeriod()
|
int |
getLogFormat()
|
int |
getLogMemSize()
Get the total size of the memory. |
int |
getLogMemUsed()
|
int |
getLogSpeedInterval()
|
int |
getLogTimeInterval()
|
java.lang.String |
getMainVersion()
|
java.lang.String |
getModel()
|
java.lang.String |
getMtkLogVersion()
|
int |
getNextReadAddr()
Get the log address that we are now expecting to receive data for. |
int |
getNMEAPeriod(int i)
|
int |
getStartAddr()
Get the start address for the log download. |
boolean |
hasAgps()
|
boolean |
isDataAvailable(int dataType)
|
boolean |
isDataOK(int mask)
|
boolean |
isDataSupported(int dataType)
|
boolean |
isHolux()
|
boolean |
isInitialLogOverwrite()
|
boolean |
isLogDownloadOngoing()
Get 'download ongoing' status. |
boolean |
isLogFullOverwrite()
|
boolean |
isLoggerNeedsFormat()
|
boolean |
isLoggingActive()
Get the 'logging activation' status of the device. |
boolean |
isLoggingDisabled()
Get the 'automatic logging activation' status of the device. |
boolean |
isPowerSaveEnabled()
|
boolean |
isSBASEnabled()
|
boolean |
isSBASTestEnabled()
|
boolean |
isTimeDistanceLogConditionExclusive()
|
int |
logFreeMemUsefullSize()
|
int |
logMemUsefullSize()
|
void |
postEvent(ModelEvent e)
|
void |
setAutoFetch(boolean isAuto)
|
void |
setDatum(int datum)
|
void |
setHolux(boolean forceHolux)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int logNbrLogPts
public int logMemUsedPercent
public boolean loggerIsFull
public static final int C_OK_FIX
public static final int C_OK_DGPS
public static final int C_OK_SBAS
public static final int C_OK_NMEA
public static final int C_OK_SBAS_TEST
public static final int C_OK_DATUM
public static final int C_OK_TIME
public static final int C_OK_SPEED
public static final int C_OK_DIST
public static final int C_OK_FORMAT
public static final int DATA_FLASH_TYPE
public static final int DATA_MEM_PTS_LOGGED
public static final int DATA_MEM_USED
public static final int DATA_LOG_FORMAT
getLogFormat()
public static final int DATA_MTK_VERSION
public static final int DATA_MTK_RELEASE
public static final int DATA_INITIAL_LOG
public static final int DATA_LOG_STATUS
isLoggingActive()
loggerIsFull
(not currently public)isLoggerNeedsFormat()
isLoggingDisabled()
(not currently public)
public static final int DATA_LOG_VERSION
getMtkLogVersion()
.
public static final int DATA_LAST_LOG_BLOCK
public static final int DATA_DEVICE_NAME
public static final int DATA_LOG_TIME_INTERVAL
getLogTimeInterval()
.
public static final int DATA_LOG_SPEED_INTERVAL
getLogSpeedInterval()
.
public static final int DATA_LOG_DISTANCE_INTERVAL
getLogDistanceInterval()
.
public static final int DATA_LOG_FLASH_STATUS
public static final int DATA_LOG_FLASH_SECTOR_STATUS
public static final int DATA_FIX_PERIOD
getLogFixPeriod()
.
public static final int DATA_AGPS_STORED_RANGE
public static final int DATA_LOG_OVERWRITE_STATUS
isLogFullOverwrite()
to get the data.
public static final int DATA_SBAS_TEST_STATUS
isSBASTestEnabled()
.
public static final int DATA_SBAS_STATUS
isSBASEnabled()
.
public static final int DATA_POWERSAVE_STATUS
isPowerSaveEnabled()
.
public static final int DATA_DATUM_MODE
getDatum()
.
public static final int DATA_NMEA_OUTPUT_PERIODS
public static final int DATA_DGPS_MODE
getDgpsMode()
later.
public static final int DATA_BT_MAC_ADDR
public static final int DATA_FLASH_USER_OPTION
getDtUpdateRate()
getDtGLL_Period()
getDtRMC_Period()
getDtVTG_Period()
getDtGSA_Period()
getDtGSV_Period()
getDtGGA_Period()
getDtZDA_Period()
getDtMCHN_Period()
getDtBaudRate()
getDtUserOptionTimesLeft()
Constructor Detail |
---|
public MtkModel(GpsModel context, GpsLinkHandler handler)
Method Detail |
---|
public final GpsModel getContext()
public final boolean isDataOK(int mask)
public final void setAutoFetch(boolean isAuto)
public final boolean isDataAvailable(int dataType)
public final boolean isDataSupported(int dataType)
public GpsLinkHandler getHandler()
public final boolean analyseMtkBinData(MtkBinTransportMessageModel response)
public boolean analyseMtkNmea(java.lang.String[] sNmea)
public void postEvent(ModelEvent e)
postEvent
in interface EventPoster
public final int logMemUsefullSize()
public final int logFreeMemUsefullSize()
public final java.lang.String getBtMacAddr()
public final int getFlashManuProdID()
public final java.lang.String getFlashDesc()
public final java.lang.String getMtkLogVersion()
public final boolean isHolux()
public final void setHolux(boolean forceHolux)
forceHolux
- Indicates if this device needs special holux decoding.public final java.lang.String getHoluxName()
public final int getLogFormat()
public final int getDtUpdateRate()
public final int getDtGLL_Period()
public final int getDtRMC_Period()
public final int getDtVTG_Period()
public final int getDtGSA_Period()
public final int getDtGSV_Period()
public final int getDtGGA_Period()
public final int getDtZDA_Period()
public final int getDtMCHN_Period()
public final int getDtBaudRate()
public final int getDtUserOptionTimesLeft()
public final int getLogTimeInterval()
public final int getLogSpeedInterval()
public final int getLogDistanceInterval()
public final int getLogFixPeriod()
public final boolean isSBASEnabled()
public final boolean isSBASTestEnabled()
public final boolean isPowerSaveEnabled()
public final boolean isInitialLogOverwrite()
public final int getDgpsMode()
public final boolean isLogFullOverwrite()
public final void setDatum(int datum)
public final int getDatum()
public final int getNMEAPeriod(int i)
public final boolean isLoggingActive()
public final boolean isLoggingDisabled()
public final boolean isLoggerNeedsFormat()
public final java.lang.String getFirmwareVersion()
public final java.lang.String getMainVersion()
public final int getLogMemSize()
public final int getLogMemUsed()
public final java.lang.String getModel()
public final int getStartAddr()
public final int getEndAddr()
public final int getNextReadAddr()
public final boolean isLogDownloadOngoing()
public final int getAgpsDataCount()
public final BT747Time getAgpsStartTime()
public final BT747Time getAgpsEndTime()
public final BT747Time getAgpsStart2Time()
public final BT747Time getAgpsEnd2Time()
public final boolean hasAgps()
public boolean isTimeDistanceLogConditionExclusive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |