|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompassGps
CompassGps is responsible for managing
CompassGpsDevices. It can hold one or more
devices, and manage their lifecycle. It is also resposible for creating an
abstraction between devices and their repectice Compass
instances, as part of the internal contract between
CompassGps and its devices and should not be used by a
non-device code (see
CompassGpsInterfaceDevice).
| Method Summary | |
|---|---|
void |
addGpsDevice(CompassGpsDevice gpsDevice)
Adds a CompassGpsDevice to be managed. |
void |
index()
Indexes all the different devices (by calling their respective index() operation. |
void |
index(Class... types)
Index just the given types. |
void |
index(IndexPlan indexPlan)
Indexes all the different devices based on the given index plan. |
void |
index(String... aliases)
Index just the aliases. |
boolean |
isPerformingIndexOperation()
Retuns true if the devide performs the index operaiton. |
boolean |
isRunning()
Return true is started. |
void |
setGpsDevices(CompassGpsDevice[] devices)
Sets a list of CompassGpsDevices that will be managed. |
void |
start()
Start CompassGps (also starts all the devices). |
void |
stop()
Stops CompassGps (also starts all the devices). |
| Method Detail |
|---|
void addGpsDevice(CompassGpsDevice gpsDevice)
CompassGpsDevice to be managed.
gpsDevice - void setGpsDevices(CompassGpsDevice[] devices)
CompassGpsDevices that will be managed.
devices -
void start()
throws CompassGpsException
CompassGps (also starts all the devices).
CompassGpsException
void stop()
throws CompassGpsException
CompassGps (also starts all the devices).
CompassGpsExceptionboolean isRunning()
true is started.
boolean isPerformingIndexOperation()
true if the devide performs the index operaiton.
void index()
throws CompassGpsException,
IllegalStateException
index() operation.
Similar to calling the index(IndexPlan) with a new
instance of DefaultIndexPlan (and nothing else set).
CompassGpsException
IllegalStateException
void index(Class... types)
throws CompassGpsException,
IllegalStateException
CompassGpsException
IllegalStateException
void index(String... aliases)
throws CompassGpsException,
IllegalStateException
CompassGpsException
IllegalStateException
void index(IndexPlan indexPlan)
throws CompassGpsException,
IllegalStateException
CompassGpsException
IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||