|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.gps.device.AbstractGpsDeviceWrapper
public class AbstractGpsDeviceWrapper
A helper base class that can wrap a CompassGpsDevice
and delegate the calls defined at the
CompassGpsDevice interface.
| Field Summary | |
|---|---|
protected CompassGpsDevice |
gpsDevice
|
protected org.apache.commons.logging.Log |
log
|
| Constructor Summary | |
|---|---|
AbstractGpsDeviceWrapper()
|
|
| Method Summary | |
|---|---|
protected void |
checkDeviceSet()
|
CompassGps |
getGps()
Returns the CompassGps that manages the device. |
String |
getName()
Returns the name associated with the device. |
void |
index(IndexPlan indexPlan)
Index the device using the given index plan |
void |
injectGps(CompassGps compassGps)
Sets the CompassGps that manages the device. |
boolean |
isPerformingIndexOperation()
Retuns true if the devide performs the index operaiton. |
boolean |
isRunning()
Returns if the device is running. |
void |
refresh()
Refresh the given device. |
void |
setGpsDevice(CompassGpsDevice gpsDevice)
|
void |
setName(String name)
Sets the name associated with the device. |
boolean |
shouldMirrorDataChanges()
Returns true if the device is required to perform mirror operation. |
void |
start()
Starts the device. |
void |
stop()
Stops the device. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected CompassGpsDevice gpsDevice
| Constructor Detail |
|---|
public AbstractGpsDeviceWrapper()
| Method Detail |
|---|
public void setGpsDevice(CompassGpsDevice gpsDevice)
public CompassGps getGps()
CompassGpsDevice
getGps in interface CompassGpsDevicepublic void injectGps(CompassGps compassGps)
CompassGpsDevice
injectGps in interface CompassGpsDevicepublic String getName()
CompassGpsDevice
getName in interface CompassGpsDevicepublic void setName(String name)
CompassGpsDevice
setName in interface CompassGpsDevice
public void start()
throws CompassGpsException
CompassGpsDevice
start in interface CompassGpsDeviceCompassGpsException
public void stop()
throws CompassGpsException
CompassGpsDevice
stop in interface CompassGpsDeviceCompassGpsException
public void refresh()
throws CompassGpsException
CompassGpsDevice
refresh in interface CompassGpsDeviceCompassGpsException
public void index(IndexPlan indexPlan)
throws CompassGpsException,
IllegalStateException
CompassGpsDevice
index in interface CompassGpsDeviceCompassGpsException
IllegalStateExceptionpublic boolean isRunning()
CompassGpsDevice
isRunning in interface CompassGpsDevicetrue if theh device is runningpublic boolean isPerformingIndexOperation()
CompassGpsDevicetrue if the devide performs the index operaiton.
isPerformingIndexOperation in interface CompassGpsDevicepublic boolean shouldMirrorDataChanges()
CompassGpsDevicetrue if the device is required to perform mirror operation.
shouldMirrorDataChanges in interface CompassGpsDeviceprotected void checkDeviceSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||