public class Network
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private com.dalsemi.onewire.adapter.DSPortAdapter |
adapter |
private static java.lang.String |
DEFAULT_ADAPTER_NAME |
(package private) java.util.Map<java.lang.Long,NetworkPath> |
pathsByAddress
The unique address of the device, and the network path to it.
|
Constructor and Description |
---|
Network(com.dalsemi.onewire.adapter.DSPortAdapter adapter) |
Network(java.lang.String commPortId) |
Network(java.lang.String adapterName,
java.lang.String commPortId) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addressPathsToString() |
java.lang.String |
getAdapterName() |
java.util.List<java.lang.Long> |
getAddresses() |
NetworkPath |
getNetworkPath(java.lang.Long address) |
java.lang.String |
getPortName() |
void |
initialize() |
private void |
initializeImpl(NetworkPath path,
java.util.List<NetworkPathElement> toTurnBackOn)
Recursive method for searching the network.
|
void |
lock() |
void |
quickInitialize() |
private void |
quickInitializeImpl(NetworkPath path)
Recursive method for searching the network.
|
void |
reset() |
void |
terminate() |
void |
unlock() |
private static final java.lang.String DEFAULT_ADAPTER_NAME
private final com.dalsemi.onewire.adapter.DSPortAdapter adapter
final java.util.Map<java.lang.Long,NetworkPath> pathsByAddress
public Network(com.dalsemi.onewire.adapter.DSPortAdapter adapter)
public Network(java.lang.String commPortId) throws com.dalsemi.onewire.adapter.OneWireIOException, com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.adapter.OneWireIOException
com.dalsemi.onewire.OneWireException
public Network(java.lang.String adapterName, java.lang.String commPortId) throws com.dalsemi.onewire.adapter.OneWireIOException, com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.adapter.OneWireIOException
com.dalsemi.onewire.OneWireException
public void initialize() throws java.lang.Exception
java.lang.Exception
public void quickInitialize() throws java.lang.Exception
java.lang.Exception
public void terminate() throws com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.OneWireException
public void lock() throws com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.OneWireException
public void reset() throws com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.OneWireException
public void unlock()
public java.lang.String getAdapterName()
public java.lang.String getPortName() throws com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.OneWireException
public java.util.List<java.lang.Long> getAddresses()
public NetworkPath getNetworkPath(java.lang.Long address)
public java.lang.String addressPathsToString()
private void initializeImpl(NetworkPath path, java.util.List<NetworkPathElement> toTurnBackOn) throws com.dalsemi.onewire.OneWireException
path
- com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.adapter.OneWireIOException
java.lang.Exception
private void quickInitializeImpl(NetworkPath path) throws com.dalsemi.onewire.OneWireException
path
- com.dalsemi.onewire.OneWireException
com.dalsemi.onewire.adapter.OneWireIOException
java.lang.Exception