Package net.anwiba.spatial.gps.gpsd
Class GpsdFacade
- java.lang.Object
-
- net.anwiba.spatial.gps.gpsd.GpsdFacade
-
- All Implemented Interfaces:
IGpsdFacade
public class GpsdFacade extends java.lang.Object implements IGpsdFacade
-
-
Constructor Summary
Constructors Constructor Description GpsdFacade()GpsdFacade(java.lang.String host, int port, int timeout)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectionconnect()IGpsDevicedevice(java.lang.String path)java.lang.Iterable<IGpsDevice>devices()static voidmain(java.lang.String[] args)Versionversion()
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
connect
public Connection connect() throws java.io.IOException
- Throws:
java.io.IOException
-
devices
public java.lang.Iterable<IGpsDevice> devices() throws java.io.IOException
- Specified by:
devicesin interfaceIGpsdFacade- Throws:
java.io.IOException
-
device
public IGpsDevice device(java.lang.String path) throws java.io.IOException
- Specified by:
devicein interfaceIGpsdFacade- Throws:
java.io.IOException
-
version
public Version version() throws java.io.IOException
- Specified by:
versionin interfaceIGpsdFacade- Throws:
java.io.IOException
-
-