bt747.model
Class AppSettings

java.lang.Object
  extended by bt747.model.AppSettings
All Implemented Interfaces:
BT747Thread
Direct Known Subclasses:
Model, WabaModel

public class AppSettings
extends java.lang.Object
implements BT747Thread

Author:
Mario De Weerd

Field Summary
static int ADVFILTACTIVE
           
static int AGPSURL
          AGPS external link.
static int BAUDRATE
           
static java.lang.String C_GMAP_KEY_FILENAME
          Google map file name (basename).
static int CARD
          The card number that the filepaths refer to.
static int COLOR_INVALIDTRACK
           
static int COLOR_VALIDTRACK
           
static int CSV_DECIMAL
          Decimal point character for CSV output file.
static int CSV_FIELD_SEP
          Field separation character for CSV output file.
static int CSV_SAT_SEP
          Satellite field separation character for CSV output file.
static int DECODEGPS
           
static int DEVICE_PROTOCOL
          Type of device to download from - used in GUI
static int DISABLELOGDURINGDOWNLOAD
          When true logging is disabled during download.
static int DISTANCE_CALC_MODE_ALWAYS
           
static int DISTANCE_CALC_MODE_NONE
           
static int DISTANCE_CALC_MODE_WHEN_MISSING
           
static int DISTANCE_CALCULATION_MODE
           
static java.lang.String DUMMY_AGPS_STRING
           
static int EXTCOMMAND
          External command
static int EXTTYPE
          External intermediate format type.
static int FILEFIELDFORMAT
          Parameter selecting the fields for the output file.
static int FILETIMEOFFSET
          The time offset for files and images.
static int FILETIMEOFFSETOLD
          The previous field for the filetime offset.
static int FONTSCALE
          Font scale in percent. 100 = original size.
static int FORCE_HOLUXM241
          Deprecated.  
static int FREETEXTPORT
          Select a port by its 'path' (/dev/usb9 for example or /dev/com1.
static int GOOGLEMAPKEY
          Parameter index to get the Google Map key.
static int GPSTIMEOFFSETHOURS_OBSOLETE
          Deprecated.  
static int GPSTIMEOFFSETQUARTERS
          The GPS time offset (UTC vs. local time) in quarters (15 minutes).
static int GPSTYPE
          Set the gpsType used for log conversion and some other operations (needed in cases where the type can not be automatically detected).
static int GPX_LINK_INFO
          Enable adding links to GPX data output.
static int GPXTRKSEGBIG
           
static int GPXUTC0
          Force GPX utc offset to 0.
static int HEIGHT_AUTOMATIC
           
static int HEIGHT_CONVERSION_MODE
          Parameter index for Height Conversion Mode.
static int HEIGHT_MSL_TO_WGS84
           
static int HEIGHT_NOCHANGE
           
static int HEIGHT_WGS84_TO_MSL
           
static int IMAGEDIR
          The directory where the images are stored or where images were last chosen from.
static int IMPERIAL
          True when Imperial units are to be used where possible
static int IS_FIRST_CONNECTION_TO_INIT
          Indicates if this is the first time a connection is made in the app.
static int IS_GPX_1_1
           
static int IS_NEW_TRACK_WHEN_LOG_ON
          New track when logger is switched on.
static int IS_RECORDNBR_IN_LOGS
          Param indicating that the record number for a position is to be written to the log.
static int IS_STOP_LOGGING_ON_CONNECT
          boolean setting to indicate that logging should be stopped on connect.
static int IS_TRAVERSABLE
          Parameter indicating if on Waba the interface must be traversable.
static int IS_USE_PRECISE_GEOID
          Whether precise GEOID calculation is to be used if available.
static int IS_WRITE_TRACKPOINT_COMMENT
           
static int IS_WRITE_TRACKPOINT_NAME
           
static int KML_ALTITUDEMODE
           
static int LANGUAGE
          The application's language.
static int LOGAHEAD
          Number of chunks to read ahead of time
static int LOGFILEPATH
           
static int LOGFILERELPATH
          Available for the application - must also set LOGFILEPATH parameter.
static BT747Vector logFiles
          Vector of LogFileInfo.
static int MAPCACHEDIRECTORY
          The directory where the map cache is to be stored.
static int MAPTYPE
          The type of the map to show (certain apps).
static int MAX_DISTANCE
           
static int MAX_HDOP
           
static int MAX_PDOP
           
static int MAX_RECCOUNT
           
static int MAX_SPEED
           
static int MAX_VDOP
           
static int MIN_DISTANCE
           
static int MIN_NSAT
           
static int MIN_RECCOUNT
           
static int MIN_SPEED
           
static int NMEAUTC0
          Force NMEA utc offset to 0.
static int OPENPORTATSTARTUP
          Indicates if the port must be opened at startup of the application.
static int OSMLOGIN
          OSM account.
static int OSMPASS
          OSM password.
static int OUTPUTDIRPATH
           
static int OUTPUTFILESPLITTYPE
          The way we split the input track: SPLIT_ONE_FILE SPLIT_ONE_FILE_PER_DAY SPLIT_ONE_FILE_PER_TRACK
static int OUTPUTLOGCONDITIONS
          When true, writes the log conditions to certain output formats.
static int PORTNBR
          The serial port number to open.
static int POS_SRV_AUTOSTART
          Property indicating whether or not the application should start sending out location updates when a GPS device is connected.
static int POS_SRV_FILE
          File part of the URL of the server to receiver the location data.
static int POS_SRV_HOSTNAME
          Hostname of the server to receive location data.
static int POS_SRV_PASS
          Password for access of the server receiving location data.
static int POS_SRV_PERIOD
          The period in seconds between location server updates
static int POS_SRV_PORT
          Port of the server receiving location data.
static int POS_SRV_USER
          Username of the server to receive location data.
static int REPORTFILEBASE
           
static int REPORTFILEBASEPATH
           
static int SETTING1_DGPS
           
static int SETTING1_DIST
           
static int SETTING1_FIX
           
static int SETTING1_LOG_FORMAT
           
static int SETTING1_LOG_OVR
           
static int SETTING1_NMEA
          Stored setting for NMEA data.
static int SETTING1_SBAS
           
static int SETTING1_SPEED
           
static int SETTING1_TEST
           
static int SETTING1_TIME
           
static int SIZE
           
static int SPLIT_DISTANCE
           
static int SPLIT_ONE_FILE
          All data in one file (OUTPUTFILESPLITTYPE).
static int SPLIT_ONE_FILE_PER_DAY
          One file per day (OUTPUTFILESPLITTYPE).
static int SPLIT_ONE_FILE_PER_TRACK
          One file per track (a track separation occurs when the time between two log points is bigger than a given time or other track split condition) (OUTPUTFILESPLITTYPE).
static int TAG_MAXTIMEDIFFERENCE
          Max time difference between GPS time and file time to tag the file with the position.
static int TAG_OVERRIDEPOSITIONS
          When true, will override already set positions while tagging.
static int TAGGEDFILE_TEMPLATE
           
static int TRKPT_RCR
          The trackpoint RCR mask for the active filter
static int TRKPT_VALID
          The 'Valid' filter mask for the current track filter.
static int TRKSEP
          Parameter index for the track separation time.
static int VERSION
          Version of the parameters.
static int WAYPT_RCR
          The waypoint RCR mask for the active filter
static int WAYPT_VALID
          Sets the 'Valid' filter mask for the current waypoint filter.
 
Constructor Summary
AppSettings()
          Controller must get settings and call init() afterwards before actual use of the model.
 
Method Summary
 void addListener(ModelListener l)
          add a listener to event thrown by this class
 void defaultSettings()
           
 boolean getBooleanOpt(int param)
           
 int getChunkSize()
          Get the chunk size (or the default).
static java.lang.String getDefaultBaseDirPath()
           
static int getDefaultChunkSize()
           
 int getDownloadTimeOut()
           
 float getFloatOpt(int param)
           
 int getIntOpt(int param)
           
 int getNMEAset()
          Gets the NMEA string types to write to the NMEA output file format.
 BT747Path getPath(int pathType)
          Get a path.
 java.lang.String getStringOpt(int param)
           
 void init()
           
static boolean isDefaultTraversable()
           
static boolean isSolveMacLagProblem()
           
 boolean isStoredSetting1()
           
 void postEvent(ModelEvent e)
           
 void removeListener(ModelListener l)
           
 void run()
           
 void setChunkSize(int chunkSize)
          Set the chunk size.
static void setDefaultBaseDirPath(java.lang.String defaultBaseDirPath)
           
static void setDefaultChunkSize(int defaultChunkSize)
           
static void setDefaultTraversable(boolean defaultTraversable)
           
 void setDownloadTimeOut(int downloadTimeOut)
           
static void setSolveMacLagProblem(boolean arg)
          Mac systems exhibit an issue and this parameters permits the application to detect that it has to be bypassed.
 void started()
          Called just before the thread is started.
 void stopped()
          Called just after the thread is stopped.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

C_GMAP_KEY_FILENAME

public static final java.lang.String C_GMAP_KEY_FILENAME
Google map file name (basename).

See Also:
Constant Field Values

DUMMY_AGPS_STRING

public static final java.lang.String DUMMY_AGPS_STRING
See Also:
Constant Field Values

REPORTFILEBASEPATH

public static final int REPORTFILEBASEPATH
See Also:
Constant Field Values

IS_WRITE_TRACKPOINT_COMMENT

public static final int IS_WRITE_TRACKPOINT_COMMENT
See Also:
Constant Field Values

IS_WRITE_TRACKPOINT_NAME

public static final int IS_WRITE_TRACKPOINT_NAME
See Also:
Constant Field Values

OUTPUTLOGCONDITIONS

public static final int OUTPUTLOGCONDITIONS
When true, writes the log conditions to certain output formats. A log condition is for example: log a point every second.

See Also:
Constant Field Values

IMPERIAL

public static final int IMPERIAL
True when Imperial units are to be used where possible

See Also:
Constant Field Values

FORCE_HOLUXM241

public static final int FORCE_HOLUXM241
Deprecated. 
Param indicating forcing the data interpretation as holux.

See Also:
Constant Field Values

IS_RECORDNBR_IN_LOGS

public static final int IS_RECORDNBR_IN_LOGS
Param indicating that the record number for a position is to be written to the log.

See Also:
Constant Field Values

IS_TRAVERSABLE

public static final int IS_TRAVERSABLE
Parameter indicating if on Waba the interface must be traversable. (for PDA)

See Also:
Constant Field Values

FILEFIELDFORMAT

public static final int FILEFIELDFORMAT
Parameter selecting the fields for the output file.
The bits can be defined using a bitwise OR of expressions like
(1<< IDX)
where IDX is one of the following:
- BT747Constants.FMT_UTC_IDX
- BT747Constants.FMT_VALID_IDX
- BT747Constants.FMT_LATITUDE_IDX
- BT747Constants.FMT_LONGITUDE_IDX
- BT747Constants.FMT_HEIGHT_IDX
- BT747Constants.FMT_SPEED_IDX
- BT747Constants.FMT_HEADING_IDX
- BT747Constants.FMT_DSTA_IDX
- BT747Constants.FMT_DAGE_IDX
- BT747Constants.FMT_PDOP_IDX
- BT747Constants.FMT_HDOP_IDX
- BT747Constants.FMT_VDOP_IDX
- BT747Constants.FMT_NSAT_IDX
- BT747Constants.FMT_SID_IDX
- BT747Constants.FMT_ELEVATION_IDX
- BT747Constants.FMT_AZIMUTH_IDX
- BT747Constants.FMT_SNR_IDX
- BT747Constants.FMT_RCR_IDX
- BT747Constants.FMT_MILLISECOND_IDX
- BT747Constants.FMT_DISTANCE_IDX
-

See Also:
Constant Field Values

IS_STOP_LOGGING_ON_CONNECT

public static final int IS_STOP_LOGGING_ON_CONNECT
boolean setting to indicate that logging should be stopped on connect. Application specific.

See Also:
Constant Field Values

OUTPUTDIRPATH

public static final int OUTPUTDIRPATH
See Also:
Constant Field Values

REPORTFILEBASE

public static final int REPORTFILEBASE
See Also:
Constant Field Values

LOGFILERELPATH

public static final int LOGFILERELPATH
Available for the application - must also set LOGFILEPATH parameter.

See Also:
Constant Field Values

LOGFILEPATH

public static final int LOGFILEPATH
See Also:
Constant Field Values

LANGUAGE

public static final int LANGUAGE
The application's language. Empty if not set by the user.

See Also:
Constant Field Values

IMAGEDIR

public static final int IMAGEDIR
The directory where the images are stored or where images were last chosen from. Can be used freely by the application.

See Also:
Constant Field Values

FILETIMEOFFSET

public static final int FILETIMEOFFSET
The time offset for files and images.

See Also:
Constant Field Values

PORTNBR

public static final int PORTNBR
The serial port number to open.

See Also:
Constant Field Values

BAUDRATE

public static final int BAUDRATE
See Also:
Constant Field Values

FREETEXTPORT

public static final int FREETEXTPORT
Select a port by its 'path' (/dev/usb9 for example or /dev/com1.

See Also:
Constant Field Values

OPENPORTATSTARTUP

public static final int OPENPORTATSTARTUP
Indicates if the port must be opened at startup of the application.

See Also:
Constant Field Values

GPSTIMEOFFSETHOURS_OBSOLETE

public static final int GPSTIMEOFFSETHOURS_OBSOLETE
Deprecated. 
The GPS time offset (UTC vs. local time). (used in adjusting the time in the output formats).

See Also:
Constant Field Values

TAG_OVERRIDEPOSITIONS

public static final int TAG_OVERRIDEPOSITIONS
When true, will override already set positions while tagging.

See Also:
Constant Field Values

TAG_MAXTIMEDIFFERENCE

public static final int TAG_MAXTIMEDIFFERENCE
Max time difference between GPS time and file time to tag the file with the position.

See Also:
Constant Field Values

GPSTYPE

public static final int GPSTYPE
Set the gpsType used for log conversion and some other operations (needed in cases where the type can not be automatically detected). The GPSTYPE parameter is a value out of:

See Also:
Constant Field Values

DISABLELOGDURINGDOWNLOAD

public static final int DISABLELOGDURINGDOWNLOAD
When true logging is disabled during download.

See Also:
Constant Field Values

MAPCACHEDIRECTORY

public static final int MAPCACHEDIRECTORY
The directory where the map cache is to be stored.

See Also:
Constant Field Values

VERSION

public static final int VERSION
Version of the parameters. Do not change this!

See Also:
Constant Field Values

MAPTYPE

public static final int MAPTYPE
The type of the map to show (certain apps).

See Also:
Constant Field Values

GOOGLEMAPKEY

public static final int GOOGLEMAPKEY
Parameter index to get the Google Map key. This is not a stored setting. Looks for the google map site key in a file called "gmapkey.txt" Will look in the output dir first, then in the source dir, then in the settings dir.

See Also:
Constant Field Values

SETTING1_NMEA

public static final int SETTING1_NMEA
Stored setting for NMEA data.

See Also:
Constant Field Values

SETTING1_TIME

public static final int SETTING1_TIME
See Also:
Constant Field Values

SETTING1_SPEED

public static final int SETTING1_SPEED
See Also:
Constant Field Values

SETTING1_DIST

public static final int SETTING1_DIST
See Also:
Constant Field Values

SETTING1_FIX

public static final int SETTING1_FIX
See Also:
Constant Field Values

SETTING1_DGPS

public static final int SETTING1_DGPS
See Also:
Constant Field Values

SETTING1_TEST

public static final int SETTING1_TEST
See Also:
Constant Field Values

SETTING1_LOG_OVR

public static final int SETTING1_LOG_OVR
See Also:
Constant Field Values

SETTING1_LOG_FORMAT

public static final int SETTING1_LOG_FORMAT
See Also:
Constant Field Values

SETTING1_SBAS

public static final int SETTING1_SBAS
See Also:
Constant Field Values

ADVFILTACTIVE

public static final int ADVFILTACTIVE
See Also:
Constant Field Values

GPXUTC0

public static final int GPXUTC0
Force GPX utc offset to 0.

See Also:
Constant Field Values

DECODEGPS

public static final int DECODEGPS
See Also:
Constant Field Values

GPXTRKSEGBIG

public static final int GPXTRKSEGBIG
See Also:
Constant Field Values

COLOR_VALIDTRACK

public static final int COLOR_VALIDTRACK
See Also:
Constant Field Values

COLOR_INVALIDTRACK

public static final int COLOR_INVALIDTRACK
See Also:
Constant Field Values

TAGGEDFILE_TEMPLATE

public static final int TAGGEDFILE_TEMPLATE
See Also:
Constant Field Values

KML_ALTITUDEMODE

public static final int KML_ALTITUDEMODE
See Also:
Constant Field Values

TRKSEP

public static final int TRKSEP
Parameter index for the track separation time. When two positions are separated by this time or more, a track separation is inserted. The parameter indicates the time in minutes for a track separation.

See Also:
Constant Field Values

LOGAHEAD

public static final int LOGAHEAD
Number of chunks to read ahead of time

See Also:
Constant Field Values

GPX_LINK_INFO

public static final int GPX_LINK_INFO
Enable adding links to GPX data output.

See Also:
Constant Field Values

IS_GPX_1_1

public static final int IS_GPX_1_1
See Also:
Constant Field Values

DEVICE_PROTOCOL

public static final int DEVICE_PROTOCOL
Type of device to download from - used in GUI

See Also:
Constant Field Values

FILETIMEOFFSETOLD

public static final int FILETIMEOFFSETOLD
The previous field for the filetime offset.

See Also:
Constant Field Values

AGPSURL

public static final int AGPSURL
AGPS external link.

See Also:
Constant Field Values

IS_USE_PRECISE_GEOID

public static final int IS_USE_PRECISE_GEOID
Whether precise GEOID calculation is to be used if available.

See Also:
Constant Field Values

IS_FIRST_CONNECTION_TO_INIT

public static final int IS_FIRST_CONNECTION_TO_INIT
Indicates if this is the first time a connection is made in the app. Used to set some device dependent settings needed when no connection.

See Also:
Constant Field Values

NMEAUTC0

public static final int NMEAUTC0
Force NMEA utc offset to 0.

See Also:
Constant Field Values

OSMLOGIN

public static final int OSMLOGIN
OSM account.

See Also:
Constant Field Values

OSMPASS

public static final int OSMPASS
OSM password.

See Also:
Constant Field Values

IS_NEW_TRACK_WHEN_LOG_ON

public static final int IS_NEW_TRACK_WHEN_LOG_ON
New track when logger is switched on.

See Also:
Constant Field Values

SPLIT_DISTANCE

public static final int SPLIT_DISTANCE
See Also:
Constant Field Values

POS_SRV_HOSTNAME

public static final int POS_SRV_HOSTNAME
Hostname of the server to receive location data.

See Also:
Constant Field Values

POS_SRV_PORT

public static final int POS_SRV_PORT
Port of the server receiving location data.

See Also:
Constant Field Values

POS_SRV_FILE

public static final int POS_SRV_FILE
File part of the URL of the server to receiver the location data.

See Also:
Constant Field Values

POS_SRV_AUTOSTART

public static final int POS_SRV_AUTOSTART
Property indicating whether or not the application should start sending out location updates when a GPS device is connected.

See Also:
Constant Field Values

POS_SRV_USER

public static final int POS_SRV_USER
Username of the server to receive location data.

See Also:
Constant Field Values

POS_SRV_PASS

public static final int POS_SRV_PASS
Password for access of the server receiving location data.

See Also:
Constant Field Values

POS_SRV_PERIOD

public static final int POS_SRV_PERIOD
The period in seconds between location server updates

See Also:
Constant Field Values

GPSTIMEOFFSETQUARTERS

public static final int GPSTIMEOFFSETQUARTERS
The GPS time offset (UTC vs. local time) in quarters (15 minutes). Replaces GPSTIMEOFFSETHOURS_OBSOLETE (used in adjusting the time in the output formats).

See Also:
Constant Field Values

EXTCOMMAND

public static final int EXTCOMMAND
External command

See Also:
Constant Field Values

EXTTYPE

public static final int EXTTYPE
External intermediate format type.

See Also:
Constant Field Values

FONTSCALE

public static final int FONTSCALE
Font scale in percent. 100 = original size.

See Also:
Constant Field Values

CARD

public static final int CARD
The card number that the filepaths refer to. This is usefull on PDA's only and probably only on a Palm. This is used by the 'SuperWaba' environment if used. '-1' refers to the 'last card in the system' which is normally the card that can be inserted by the PDA user.

See Also:
Constant Field Values

SPLIT_ONE_FILE

public static final int SPLIT_ONE_FILE
All data in one file (OUTPUTFILESPLITTYPE).

See Also:
Constant Field Values

SPLIT_ONE_FILE_PER_DAY

public static final int SPLIT_ONE_FILE_PER_DAY
One file per day (OUTPUTFILESPLITTYPE).

See Also:
Constant Field Values

SPLIT_ONE_FILE_PER_TRACK

public static final int SPLIT_ONE_FILE_PER_TRACK
One file per track (a track separation occurs when the time between two log points is bigger than a given time or other track split condition) (OUTPUTFILESPLITTYPE).

See Also:
Constant Field Values

OUTPUTFILESPLITTYPE

public static final int OUTPUTFILESPLITTYPE
The way we split the input track:

See Also:
Constant Field Values

MIN_SPEED

public static final int MIN_SPEED
See Also:
Constant Field Values

MAX_SPEED

public static final int MAX_SPEED
See Also:
Constant Field Values

MIN_NSAT

public static final int MIN_NSAT
See Also:
Constant Field Values

MIN_RECCOUNT

public static final int MIN_RECCOUNT
See Also:
Constant Field Values

MAX_RECCOUNT

public static final int MAX_RECCOUNT
See Also:
Constant Field Values

MIN_DISTANCE

public static final int MIN_DISTANCE
See Also:
Constant Field Values

MAX_VDOP

public static final int MAX_VDOP
See Also:
Constant Field Values

MAX_PDOP

public static final int MAX_PDOP
See Also:
Constant Field Values

MAX_HDOP

public static final int MAX_HDOP
See Also:
Constant Field Values

MAX_DISTANCE

public static final int MAX_DISTANCE
See Also:
Constant Field Values

HEIGHT_CONVERSION_MODE

public static final int HEIGHT_CONVERSION_MODE
Parameter index for Height Conversion Mode.

See Also:
HEIGHT_AUTOMATIC, HEIGHT_MSL_TO_WGS84, HEIGHT_WGS84_TO_MSL, HEIGHT_NOCHANGE, Constant Field Values

HEIGHT_NOCHANGE

public static final int HEIGHT_NOCHANGE
See Also:
Constant Field Values

HEIGHT_WGS84_TO_MSL

public static final int HEIGHT_WGS84_TO_MSL
See Also:
Constant Field Values

HEIGHT_AUTOMATIC

public static final int HEIGHT_AUTOMATIC
See Also:
Constant Field Values

HEIGHT_MSL_TO_WGS84

public static final int HEIGHT_MSL_TO_WGS84
See Also:
Constant Field Values

DISTANCE_CALCULATION_MODE

public static final int DISTANCE_CALCULATION_MODE
See Also:
Constant Field Values

DISTANCE_CALC_MODE_NONE

public static final int DISTANCE_CALC_MODE_NONE
See Also:
Constant Field Values

DISTANCE_CALC_MODE_WHEN_MISSING

public static final int DISTANCE_CALC_MODE_WHEN_MISSING
See Also:
Constant Field Values

DISTANCE_CALC_MODE_ALWAYS

public static final int DISTANCE_CALC_MODE_ALWAYS
See Also:
Constant Field Values

WAYPT_VALID

public static final int WAYPT_VALID
Sets the 'Valid' filter mask for the current waypoint filter. The filter mask to set for the validity filter. Use the following constants:
- BT747Constants.VALID_NO_FIX_MASK
- BT747Constants.VALID_SPS_MASK
- BT747Constants.VALID_DGPS_MASK
- BT747Constants.VALID_PPS_MASK
- BT747Constants.VALID_RTK_MASK
- BT747Constants.VALID_FRTK_MASK
- BT747Constants.VALID_ESTIMATED_MASK
- BT747Constants.VALID_MANUAL_MASK
- BT747Constants.VALID_SIMULATOR_MASK

See Also:
Constant Field Values

TRKPT_RCR

public static final int TRKPT_RCR
The trackpoint RCR mask for the active filter. - BT747Constants.RCR_TIME_MASK
- BT747Constants.RCR_SPEED_MASK
- BT747Constants.RCR_DISTANCE_MASK
- BT747Constants.RCR_BUTTON_MASK
- BT747Constants.RCR_APP0_MASK
- BT747Constants.RCR_APP1_MASK
- BT747Constants.RCR_APP2_MASK
- BT747Constants.RCR_APP3_MASK
- BT747Constants.RCR_APP4_MASK
- BT747Constants.RCR_APP5_MASK
- BT747Constants.RCR_APP6_MASK
- BT747Constants.RCR_APP7_MASK
- BT747Constants.RCR_APP8_MASK
- BT747Constants.RCR_APP9_MASK
- BT747Constants.RCR_APPY_MASK
- BT747Constants.RCR_APPZ_MASK
- BT747Constants.RCR_ALL_APP_MASK

See Also:
Constant Field Values

TRKPT_VALID

public static final int TRKPT_VALID
The 'Valid' filter mask for the current track filter. The filter mask to set for the validity filter. Use the following constants:
- BT747Constants.VALID_NO_FIX_MASK
- BT747Constants.VALID_SPS_MASK
- BT747Constants.VALID_DGPS_MASK
- BT747Constants.VALID_PPS_MASK
- BT747Constants.VALID_RTK_MASK
- BT747Constants.VALID_FRTK_MASK
- BT747Constants.VALID_ESTIMATED_MASK
- BT747Constants.VALID_MANUAL_MASK
- BT747Constants.VALID_SIMULATOR_MASK
-

See Also:
Constant Field Values

WAYPT_RCR

public static final int WAYPT_RCR
The waypoint RCR mask for the active filter. - BT747Constants.RCR_TIME_MASK
- BT747Constants.RCR_SPEED_MASK
- BT747Constants.RCR_DISTANCE_MASK
- BT747Constants.RCR_BUTTON_MASK
- BT747Constants.RCR_APP0_MASK
- BT747Constants.RCR_APP1_MASK
- BT747Constants.RCR_APP2_MASK
- BT747Constants.RCR_APP3_MASK
- BT747Constants.RCR_APP4_MASK
- BT747Constants.RCR_APP5_MASK
- BT747Constants.RCR_APP6_MASK
- BT747Constants.RCR_APP7_MASK
- BT747Constants.RCR_APP8_MASK
- BT747Constants.RCR_APP9_MASK
- BT747Constants.RCR_APPY_MASK
- BT747Constants.RCR_APPZ_MASK
- BT747Constants.RCR_ALL_APP_MASK

See Also:
Constant Field Values

CSV_FIELD_SEP

public static final int CSV_FIELD_SEP
Field separation character for CSV output file.

See Also:
Constant Field Values

CSV_DECIMAL

public static final int CSV_DECIMAL
Decimal point character for CSV output file.

See Also:
Constant Field Values

CSV_SAT_SEP

public static final int CSV_SAT_SEP
Satellite field separation character for CSV output file.

See Also:
Constant Field Values

logFiles

public static final BT747Vector logFiles
Vector of LogFileInfo.


SIZE

public static final int SIZE
See Also:
Constant Field Values
Constructor Detail

AppSettings

public AppSettings()
Controller must get settings and call init() afterwards before actual use of the model.

Method Detail

init

public final void init()

defaultSettings

public final void defaultSettings()

getBooleanOpt

public final boolean getBooleanOpt(int param)

getIntOpt

public final int getIntOpt(int param)

getStringOpt

public final java.lang.String getStringOpt(int param)

getChunkSize

public final int getChunkSize()
Get the chunk size (or the default).

Returns:
The default chunk size

setChunkSize

public final void setChunkSize(int chunkSize)
Set the chunk size.

Parameters:
chunkSize - The ChunkSize to set as a default.

getDownloadTimeOut

public final int getDownloadTimeOut()
Returns:
The default chunk size

setDownloadTimeOut

public final void setDownloadTimeOut(int downloadTimeOut)
Parameters:
downloadTimeOut - The DownloadTimeOut to set as a default.

getNMEAset

public final int getNMEAset()
Gets the NMEA string types to write to the NMEA output file format. Bit format using following bit indexes:
- BT747Constants.NMEA_SEN_GLL_IDX
- BT747Constants.NMEA_SEN_RMC_IDX
- BT747Constants.NMEA_SEN_VTG_IDX
- BT747Constants.NMEA_SEN_GGA_IDX
- BT747Constants.NMEA_SEN_GSA_IDX
- BT747Constants.NMEA_SEN_GSV_IDX
- BT747Constants.NMEA_SEN_GRS_IDX
- BT747Constants.NMEA_SEN_GST_IDX
- BT747Constants.NMEA_SEN_MALM_IDX
- BT747Constants.NMEA_SEN_MEPH_IDX
- BT747Constants.NMEA_SEN_MDGP_IDX
- BT747Constants.NMEA_SEN_MDBG_IDX
- BT747Constants.NMEA_SEN_ZDA_IDX
- BT747Constants.NMEA_SEN_MCHN_IDX


isSolveMacLagProblem

public static final boolean isSolveMacLagProblem()
Returns:
Returns the solveMacLagProblem.

setSolveMacLagProblem

public static final void setSolveMacLagProblem(boolean arg)
Mac systems exhibit an issue and this parameters permits the application to detect that it has to be bypassed.

Parameters:
arg - When true, solve the lag problem (on Mac systems).

isStoredSetting1

public final boolean isStoredSetting1()

setDefaultTraversable

public static void setDefaultTraversable(boolean defaultTraversable)
Parameters:
defaultTraversable - the defaultTraversable to set

isDefaultTraversable

public static boolean isDefaultTraversable()
Returns:
the defaultTraversable

setDefaultChunkSize

public static void setDefaultChunkSize(int defaultChunkSize)
Parameters:
defaultChunkSize - the defaultChunkSize to set

getDefaultChunkSize

public static int getDefaultChunkSize()
Returns:
the defaultChunkSize

setDefaultBaseDirPath

public static void setDefaultBaseDirPath(java.lang.String defaultBaseDirPath)
Parameters:
defaultBaseDirPath - the defaultBaseDirPath to set

getDefaultBaseDirPath

public static java.lang.String getDefaultBaseDirPath()
Returns:
the defaultBaseDirPath

getFloatOpt

public final float getFloatOpt(int param)

getPath

public BT747Path getPath(int pathType)
Get a path. Introduced so that an override is possible on some systems to take additional parameters into account like the card number.

Parameters:
pathType - One of the parameter indexes corresponding to a path entry.
Returns:
returns the path for the given path type.

addListener

public final void addListener(ModelListener l)
add a listener to event thrown by this class


removeListener

public final void removeListener(ModelListener l)

postEvent

public final void postEvent(ModelEvent e)

run

public void run()
Specified by:
run in interface BT747Thread

started

public void started()
Description copied from interface: BT747Thread
Called just before the thread is started.

Specified by:
started in interface BT747Thread

stopped

public void stopped()
Description copied from interface: BT747Thread
Called just after the thread is stopped.

Specified by:
stopped in interface BT747Thread