Constructor and Description |
---|
W1Master()
Create an instance of the W1 master.
|
W1Master(ClassLoader classloader)
Create an instance of the W1 master.
|
W1Master(String masterDir)
Create a master with a different default dir e.g.
|
W1Master(String masterDir,
ClassLoader classloader)
Create a master with a different default dir e.g.
|
Modifier and Type | Method and Description |
---|---|
void |
checkDeviceChanges() |
List<String> |
getDeviceIDs()
Gets a list of all registered slave device ids.
|
List<W1Device> |
getDevices()
Get the list of available devices.
|
<T> List<T> |
getDevices(Class<T> type)
Get a list of devices that implement a certain interface.
|
<T extends W1Device> |
getDevices(int deviceFamilyId) |
Map<String,W1DeviceType> |
getDeviceTypeMap() |
Collection<W1DeviceType> |
getDeviceTypes()
Gets a list of the available device types.
|
<T extends W1Device> |
getW1Devices(Class<T> type) |
String |
toString() |
public W1Master()
public W1Master(ClassLoader classloader)
classloader
- This ClassLoader will be used for the ServiceLoader to determine supported device types.public W1Master(String masterDir)
masterDir
- public W1Master(String masterDir, ClassLoader classloader)
masterDir
- classloader
- This ClassLoader will be used for the ServiceLoader to determine supported device types.public void checkDeviceChanges()
public Collection<W1DeviceType> getDeviceTypes()
public Map<String,W1DeviceType> getDeviceTypeMap()
public List<String> getDeviceIDs()
public List<W1Device> getDevices()
public <T extends W1Device> List<T> getDevices(int deviceFamilyId)
public <T> List<T> getDevices(Class<T> type)
T
- type
- public <T extends W1Device> List<T> getW1Devices(Class<T> type)
Copyright © 2012–2019 Pi4J. All rights reserved.