|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbt747.model.AppSettings
bt747.model.Model
public class Model
The model in the Model-View-Controller pattern. Information regarding the state of the GPS device or settings must use this model interface.
Field Summary | |
---|---|
static int |
ARRAY_LOGTYPE
log type (Array log type - must call specific function to get array). |
static int |
BIN_LOGTYPE
log type (BIN log type). |
static int |
CSV_LOGTYPE
CSV log type (Comma Separated Values). |
static int |
DOWNLOAD_FILLED
Download reported filled memory. |
static int |
DOWNLOAD_FULL
Download full memory. |
static int |
DOWNLOAD_SMART
Download reported memory - incremental. |
static int |
EXTERNAL_LOGTYPE
Call upon an external tool. |
static int |
GMAP_LOGTYPE
GMAP log type (Google Map - html output). |
static int |
GOOGLE_MAP_STATIC_URL_LOGTYPE
Get static google map. |
static int |
GPX_LOGTYPE
GPX log type (gpx format). |
static int |
KML_LOGTYPE
KML log type ('Google Earth' format). |
static int |
KMZ_LOGTYPE
log type (KMZ log type). |
static int |
MULTI_LOGTYPE
log type (Array log type - must call specific function to get array). |
static int |
NMEA_LOGTYPE
NMEA log type (NMEA strings - text format - similar to GPS output). |
static int |
NO_LOG_LOGTYPE
Indicate that the log type does not reference any log type. |
static int |
OSM_LOGTYPE
GPX for OSM log type (gpx format) [same as GPX but limited output). |
static int |
OSM_UPLOAD_LOGTYPE
Upload GPX for OSM (upload handled by caller, specific output file). |
static int |
PLT_LOGTYPE
Compe GPS log type (Writes PLT and WPT files). |
static int |
POSTGIS_LOGTYPE
Get PostGis commands. |
static int |
SQL_LOGTYPE
Get Sql commands. |
static int |
SR_LOGTYPE
log type (TRL holux log type). |
static int |
TRK_LOGTYPE
log type (Writes TRK and WPT files). |
static int |
TRL_LOGTYPE
log type (TRL holux log type). |
Constructor Summary | |
---|---|
Model()
The default constructor of the model. |
Method Summary | |
---|---|
java.lang.String |
getBTAddr()
|
int |
getDatum()
|
int |
getDgpsMode()
|
int |
getDownloadMethod()
Get the download method. |
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. |
int |
getEstimatedNbrRecords(int logFormat)
Get the maximum number of record that can be logged with the provided log format. |
int |
getEstimatedNbrRecordsFree(int logFormat)
|
int |
getFilterEndTime()
Get the filter end time. |
int |
getFilterStartTime()
Get the filter start date. |
java.lang.String |
getFirmwareVersion()
|
java.lang.String |
getFlashDesc()
|
int |
getFlashManuProdID()
Get the manufacturer id of the flash memory. |
java.lang.String |
getHoluxName()
|
int |
getLastConversionOngoing()
|
int |
getLogDistanceInterval()
|
GPSFilter[] |
getLogFilters()
|
int |
getLogFixPeriod()
|
int |
getLogFormat()
|
int |
getLogSpeedInterval()
|
int |
getLogTimeInterval()
|
java.lang.String |
getMainVersion()
|
java.lang.String |
getModelStr()
|
java.lang.String |
getMtkLogVersion()
Get the SW Logger Version of the MTK device. |
int |
getNextReadAddr()
Get the log address that we are now expecting to receive data for. |
int |
getNMEAPeriod(int i)
|
int |
getOutstandingCommandsCount()
|
int |
getRcrMask(int logFilterType)
Get the record reason mask. |
int |
getStartAddr()
Get the start address for the log download. |
int |
getValidMask(int logFilterType)
Get the log point validity mask. |
void |
gpsEvent(GpsEvent event)
|
boolean |
isAvailable(int dataType)
Indicates if the given data is available. |
boolean |
isConnected()
Determine the connection status |
boolean |
isConversionOngoing()
|
static boolean |
isDebug()
Get the debug status. |
boolean |
isDebugConn()
Get the connection debug status. |
boolean |
isDownloadOnGoing()
Get 'download ongoing' status. |
boolean |
isHolux()
|
boolean |
isIncremental()
Deprecated. |
boolean |
isInitialLogOverwrite()
|
boolean |
isLogFullOverwrite()
Get the devices 'log overwrite' or 'log stop when full' status. |
boolean |
isLoggerNeedsFormat()
Value provided by the logger indicating that the device needs to be initialised/formatted. |
boolean |
isLoggingActive()
Get the 'logging activation' status of the device. |
boolean |
isPowerSaveEnabled()
|
boolean |
isSBASEnabled()
|
boolean |
isSBASTestEnabled()
|
int |
logFreeMemUsefullSize()
|
int |
logMemSize()
Get memory size. |
int |
logMemUsed()
Get the amount of memory that is filled with data on the device. |
int |
logMemUsedPercent()
Get the amount of memory that is filled with data on the device. |
int |
logMemUsefullSize()
|
int |
logNbrLogPts()
Get the number of positions that are currently stored in the memory of the GPS device. |
MtkModel |
mtkModel()
|
void |
setDownloadMethod(int downloadMethod)
Set the download method. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bt747.model.EventPoster |
---|
postEvent |
Field Detail |
---|
public static final int NO_LOG_LOGTYPE
public static final int CSV_LOGTYPE
public static final int GMAP_LOGTYPE
public static final int GPX_LOGTYPE
public static final int KML_LOGTYPE
public static final int NMEA_LOGTYPE
public static final int PLT_LOGTYPE
public static final int TRK_LOGTYPE
public static final int BIN_LOGTYPE
public static final int TRL_LOGTYPE
public static final int SR_LOGTYPE
public static final int KMZ_LOGTYPE
public static final int ARRAY_LOGTYPE
public static final int MULTI_LOGTYPE
public static final int OSM_LOGTYPE
public static final int OSM_UPLOAD_LOGTYPE
public static final int EXTERNAL_LOGTYPE
public static final int GOOGLE_MAP_STATIC_URL_LOGTYPE
public static final int SQL_LOGTYPE
public static final int POSTGIS_LOGTYPE
public static final int DOWNLOAD_FILLED
public static final int DOWNLOAD_SMART
public static final int DOWNLOAD_FULL
Constructor Detail |
---|
public Model()
Method Detail |
---|
public final boolean isConnected()
public final int getOutstandingCommandsCount()
public final int getLastConversionOngoing()
public final boolean isConversionOngoing()
public final int getValidMask(int logFilterType)
logFilterType
- The type of log filter that we request the information
for (index of the log filter).
public final int getRcrMask(int logFilterType)
logFilterType
- The type of log filter that we request the information
for (index of the log filter).
public final GPSFilter[] getLogFilters()
public final int getFilterStartTime()
public final int getFilterEndTime()
public final int getStartAddr()
public final int getEndAddr()
public final boolean isDownloadOnGoing()
public final int getNextReadAddr()
public final boolean isIncremental()
public final int getDownloadMethod()
DOWNLOAD_FILLED
DOWNLOAD_FULL
DOWNLOAD_SMART
public final void setDownloadMethod(int downloadMethod)
DOWNLOAD_FILLED
DOWNLOAD_FULL
DOWNLOAD_SMART
public final MtkModel mtkModel()
public final boolean isLoggingActive()
public final boolean isLoggerNeedsFormat()
public final int logMemSize()
public final int logMemUsed()
public final int logMemUsedPercent()
public final int logNbrLogPts()
public final java.lang.String getMtkLogVersion()
public final java.lang.String getMainVersion()
public final java.lang.String getFirmwareVersion()
public final java.lang.String getModelStr()
public final int getFlashManuProdID()
public final java.lang.String getFlashDesc()
public final int getLogFormat()
public final boolean isHolux()
public final int logMemUsefullSize()
public final int logFreeMemUsefullSize()
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 java.lang.String getHoluxName()
public final java.lang.String getBTAddr()
public final int getNMEAPeriod(int i)
public final int getLogTimeInterval()
public final int getLogSpeedInterval()
public final int getLogDistanceInterval()
public final int getLogFixPeriod()
public final int getDgpsMode()
public final boolean isLogFullOverwrite()
public final boolean isInitialLogOverwrite()
public final boolean isSBASEnabled()
public final boolean isSBASTestEnabled()
public final boolean isPowerSaveEnabled()
public final int getDatum()
public final int getEstimatedNbrRecords(int logFormat)
logFormat
- The log format to use to calculate the number of
records.
public final int getEstimatedNbrRecordsFree(int logFormat)
public static final boolean isDebug()
public final boolean isAvailable(int dataType)
dataType
- For example: MtkModel.DATA_MEM_USED
.
public final boolean isDebugConn()
public final void gpsEvent(GpsEvent event)
gpsEvent
in interface GPSListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |