Package | Description |
---|---|
wxservice |
Main engine classes for the 1-Wire Weather Service for Java.
|
wxservice.formatter.task |
Formatters receive data from
IDataExchange . |
wxservice.sensor.task |
Sensor tasks collect data from devices on the 1-Wire MicroLan and post it to
the sensor data objects via
IDataExchange . |
Modifier and Type | Class and Description |
---|---|
class |
AuthException
Indicates authentication/authorization failure.
|
class |
StatusException
Indicates an unexpected completion status was received.
|
class |
TimingAccessException
Indicates a 1-Wire access did not complete within the allotted time.
|
class |
TimingException
Indicates a time-critical process did not complete within the alloted time.
|
class |
ValueException
Indicates an unexpected value or a value out of range.
|
Modifier and Type | Method and Description |
---|---|
void |
IService.addListener(IServiceListener listener)
Adds a listener for sensor updates.
|
void |
Service.addListener(IServiceListener listener) |
java.util.Properties |
IService.getConfiguration()
Configuration properties accessor.
|
java.util.Properties |
Service.getConfiguration() |
java.util.List<WebConfigData> |
WxWeb.getConfiguration()
Configuration properties accessor.
|
java.util.List<java.lang.String> |
IService.getFileData(java.lang.String name)
Returns data from the specified file as a sting array.
|
java.util.List<java.lang.String> |
Service.getFileData(java.lang.String name) |
java.util.List<java.lang.String> |
WxWeb.getFileData(java.lang.String name)
Returns data from the specified file as a sting array.
|
java.util.List<java.lang.String> |
IService.getFileNames()
File names property accessor.
|
java.util.List<java.lang.String> |
Service.getFileNames() |
java.util.List<java.lang.String> |
WxWeb.getFileNames()
File names property accessor.
|
java.util.List<WebSensorData> |
WxWeb.getSensorData(long time)
Fetches sensor data recorded since the specified time.
|
void |
IService.removeListener(IServiceListener listener)
Removes a listener for sensor updates.
|
void |
Service.removeListener(IServiceListener listener) |
void |
WxWeb.setConfiguration(java.util.List<WebConfigData> config)
Configuration properties accessor.
|
void |
IService.setConfiguration(java.util.Properties config)
Configuration properties accessor.
|
void |
Service.setConfiguration(java.util.Properties config) |
Constructor and Description |
---|
Service(boolean inproc)
Creates a new instance of Service.
|
WxWeb()
Creates a new instance of WxWeb.
|
Modifier and Type | Method and Description |
---|---|
private void |
APRS.FormatTask.loginAPRS(java.io.OutputStream os,
java.io.InputStream is)
Logs in to APRS using the previously formatted login string.
|
private java.lang.String |
APRS.FormatTask.processResponse(java.lang.String response)
Compares APRS response with the configured error responses.
|
Modifier and Type | Method and Description |
---|---|
private void |
WSI603A.WindTask.accessDevice()
Access device and process data.
|
private void |
WSI603A.WindTask.checksum(byte[] data,
int length,
byte checksum)
Performs a checksum on received data.
|
private void |
Barometer.ReadTask.configure()
Configures 1-Wire parameters.
|
private void |
WSI603A.WindTask.executeCommand(byte[] command)
Executes a command, then spins in a loop waiting for it to complete.
|
private com.dalsemi.onewire.container.OneWireContainer |
SensorTask.findContainer(byte[] address,
byte[] family)
Finds a specific device by address for this task.
|
private com.dalsemi.onewire.container.OneWireContainer |
SensorTask.findContainer(java.lang.String address,
byte[] family)
Finds or discovers a suitable device by address for this task.
|
private com.dalsemi.onewire.container.OneWireContainer |
SensorTask.findContainer(java.lang.String address,
java.lang.String name,
byte[] family)
Finds a device by file or address for this task.
|
protected com.dalsemi.onewire.container.OneWireContainer |
SensorTask.findContainerEFT(byte[] address,
byte[] family)
Finds a specific device by address for this task.
|
protected com.dalsemi.onewire.container.OneWireContainer |
SensorTask.findContainerEFT(java.lang.String address,
byte[] family)
Finds or discovers a suitable device by address for this task.
|
protected com.dalsemi.onewire.container.OneWireContainer |
SensorTask.findContainerEFT(java.lang.String address,
java.lang.String name,
byte[] family)
Finds a device by file or address for this task.
|
private void |
Barometer.ReadTask.identifyDevices(java.lang.String cfgAddress,
java.lang.String cfgFileName)
Finds the device that has the file containing the address of the
other device and reads the file.
|
private void |
Anemometer.ReadTask.initDevice()
Initializes the sensor for operation.
|
private void |
Barometer.ReadTask.initDevice()
Initializes the TAI8570 Pressure SensorTask for operation.
|
private void |
Barometer2438.ReadTask.initDevice()
Initializes the sensor for operation.
|
private void |
Hygrometer.ReadTask.initDevice()
Initializes the sensor for operation.
|
private void |
Precipitation.ReadTask.initDevice()
Initializes the sensor for operation.
|
private void |
Thermometer.ReadTask.initDevice()
Initializes the sensor for operation.
|
private void |
WSI603A.WindTask.initDevice()
Initializes the sensor for operation.
|
private void |
WSI603A.TemperatureTask.initDevice()
Initializes the sensor for operation.
|
private void |
WindVane.ReadTask.initDevice()
Initializes the sensor for operation.
|
private byte[] |
WSI603A.WindTask.readResponse()
Reads the response buffer, performs checksum for validation.
|
private void |
WSI603A.WindTask.writeBytes(int address,
byte[] data)
Writes a data buffer to the DS2760 and reads it back for validation.
|