com.partnersoft.gps
Class GPSSettings

java.lang.Object
  extended by com.partnersoft.gps.GPSSettings
All Implemented Interfaces:
Coggable

public class GPSSettings
extends java.lang.Object
implements Coggable

Various settings for GPS support.

Author:
Paul Reavis Copyright 2003-2005 Partner Software, Inc.

Field Summary
static java.lang.String NMEA_GPS
           
static java.lang.String SIMULATED_GPS
           
static java.lang.String TRIMBLE_GPS
           
 
Constructor Summary
GPSSettings()
           
GPSSettings(Cog state)
           
 
Method Summary
 int getBaudRate()
          Gets the value of baudRate
 int getDataBits()
          Gets the value of dataBits
 java.lang.String getGpsType()
           
 java.lang.String getParity()
          Gets the value of parity
 int getParityCode()
           
 java.lang.String getPathfinderDirectory()
           
 java.lang.String getPortName()
          Gets the value of portName
 java.lang.String getProjectionName()
          Gets the value of projectionName
 int getRefreshRate()
          Gets the value of refreshRate
 double getSimulationCenterX()
           
 double getSimulationCenterY()
           
 java.lang.String getStopBits()
          Gets the value of stopBits
 boolean isEnabled()
          Gets the value of enabled
 boolean isPostProcessingEnabled()
           
 boolean isRotatingMapWithGps()
           
 boolean isShowingPrnNumbers()
           
 void setBaudRate(int argBaudRate)
          Sets the value of baudRate
 void setDataBits(int argDataBits)
          Sets the value of dataBits
 void setEnabled(boolean argEnabled)
          Sets the value of enabled
 void setGpsType(java.lang.String gpsType)
           
 void setParity(java.lang.String argParity)
          Sets the value of parity
 void setPathfinderDirectory(java.lang.String pathfinderDirectory)
           
 void setPortName(java.lang.String argPortName)
          Sets the value of portName
 void setPostProcessingEnabled(boolean postProcessingEnabled)
           
 void setProjectionName(java.lang.String argProjectionName)
          Sets the value of projectionName
 void setRefreshRate(int argRefreshRate)
          Sets the value of refreshRate
 void setRotateMapWithGps(boolean rotateMapWithGps)
           
 void setShowingPrnNumbers(boolean showPrnNumbers)
           
 void setSimulationCenterX(double simulationCenterX)
           
 void setSimulationCenterY(double simulationCenterY)
           
 void setStopBits(java.lang.String argStopBits)
          Sets the value of stopBits
 Cog toCog()
          Returns the complete internal state of this object in the form of a Cog.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NMEA_GPS

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

SIMULATED_GPS

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

TRIMBLE_GPS

public static final java.lang.String TRIMBLE_GPS
See Also:
Constant Field Values
Constructor Detail

GPSSettings

public GPSSettings()

GPSSettings

public GPSSettings(Cog state)
Method Detail

toCog

public Cog toCog()
Description copied from interface: Coggable
Returns the complete internal state of this object in the form of a Cog.

Specified by:
toCog in interface Coggable
Returns:
Cog representing the internal state of this object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getParityCode

public int getParityCode()

isEnabled

public boolean isEnabled()
Gets the value of enabled

Returns:
the value of enabled

setEnabled

public void setEnabled(boolean argEnabled)
Sets the value of enabled

Parameters:
argEnabled - Value to assign to this.enabled

getRefreshRate

public int getRefreshRate()
Gets the value of refreshRate

Returns:
the value of refreshRate

setRefreshRate

public void setRefreshRate(int argRefreshRate)
Sets the value of refreshRate

Parameters:
argRefreshRate - Value to assign to this.refreshRate

getPortName

public java.lang.String getPortName()
Gets the value of portName

Returns:
the value of portName

setPortName

public void setPortName(java.lang.String argPortName)
Sets the value of portName

Parameters:
argPortName - Value to assign to this.portName
Throws:
java.lang.NullPointerException - if the port name is null.

getBaudRate

public int getBaudRate()
Gets the value of baudRate

Returns:
the value of baudRate

setBaudRate

public void setBaudRate(int argBaudRate)
Sets the value of baudRate

Parameters:
argBaudRate - Value to assign to this.baudRate

getProjectionName

public java.lang.String getProjectionName()
Gets the value of projectionName

Returns:
the value of projectionName

setProjectionName

public void setProjectionName(java.lang.String argProjectionName)
Sets the value of projectionName

Parameters:
argProjectionName - Value to assign to this.projectionName
Throws:
java.lang.NullPointerException - if the projection name is null.

getDataBits

public int getDataBits()
Gets the value of dataBits

Returns:
the value of dataBits

setDataBits

public void setDataBits(int argDataBits)
Sets the value of dataBits

Parameters:
argDataBits - Value to assign to this.dataBits

getStopBits

public java.lang.String getStopBits()
Gets the value of stopBits

Returns:
the value of stopBits

setStopBits

public void setStopBits(java.lang.String argStopBits)
Sets the value of stopBits

Parameters:
argStopBits - Value to assign to this.stopBits

getParity

public java.lang.String getParity()
Gets the value of parity

Returns:
the value of parity

setParity

public void setParity(java.lang.String argParity)
Sets the value of parity

Parameters:
argParity - Value to assign to this.parity

getGpsType

public java.lang.String getGpsType()

setGpsType

public void setGpsType(java.lang.String gpsType)
Parameters:
gpsType -
Throws:
java.lang.NullPointerException - if the gpsType is null.

getPathfinderDirectory

public java.lang.String getPathfinderDirectory()

setPathfinderDirectory

public void setPathfinderDirectory(java.lang.String pathfinderDirectory)
Throws:
java.lang.NullPointerException - if the gpsType is null.

isPostProcessingEnabled

public boolean isPostProcessingEnabled()

setPostProcessingEnabled

public void setPostProcessingEnabled(boolean postProcessingEnabled)

getSimulationCenterX

public double getSimulationCenterX()

setSimulationCenterX

public void setSimulationCenterX(double simulationCenterX)

getSimulationCenterY

public double getSimulationCenterY()

setSimulationCenterY

public void setSimulationCenterY(double simulationCenterY)

isShowingPrnNumbers

public boolean isShowingPrnNumbers()

setShowingPrnNumbers

public void setShowingPrnNumbers(boolean showPrnNumbers)

isRotatingMapWithGps

public boolean isRotatingMapWithGps()

setRotateMapWithGps

public void setRotateMapWithGps(boolean rotateMapWithGps)