public class NetworkPath
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<NetworkPathElement> |
elements
Elements of the path
|
private Network |
network
Network where this path is based
|
private com.dalsemi.onewire.container.OneWireContainer |
target |
private OneWireContainerInfo |
targetInfo |
| Constructor and Description |
|---|
NetworkPath(Network network) |
NetworkPath(NetworkPath currentPath,
com.dalsemi.onewire.container.OneWireContainer target,
OneWireContainerInfo targetInfo) |
NetworkPath(NetworkPath currentPath,
com.dalsemi.onewire.container.SwitchContainer sc,
java.lang.Long address,
int channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the entire path.
|
private void |
close(int downToInclusive)
Only close elements following the common elements in the next path, so as to avoid having to reopen them again.
|
boolean |
equals(NetworkPath otherPath) |
NetworkPathElement |
getTail() |
com.dalsemi.onewire.container.OneWireContainer |
getTarget() |
OneWireContainerInfo |
getTargetInfo() |
boolean |
isCoupler() |
void |
open()
Open the entire path.
|
void |
open(NetworkPath lastPath)
Close the path elements in the last path following the common elements of this and the last path, and open the
same in this path.
|
java.lang.String |
toString() |
private final java.util.List<NetworkPathElement> elements
private final Network network
private final com.dalsemi.onewire.container.OneWireContainer target
private final OneWireContainerInfo targetInfo
public NetworkPath(Network network)
public NetworkPath(NetworkPath currentPath, com.dalsemi.onewire.container.OneWireContainer target, OneWireContainerInfo targetInfo)
public NetworkPath(NetworkPath currentPath, com.dalsemi.onewire.container.SwitchContainer sc, java.lang.Long address, int channel)
public com.dalsemi.onewire.container.OneWireContainer getTarget()
public OneWireContainerInfo getTargetInfo()
public boolean isCoupler()
public boolean equals(NetworkPath otherPath)
public NetworkPathElement getTail()
public java.lang.String toString()
toString in class java.lang.Objectpublic void open()
throws com.dalsemi.onewire.OneWireException,
com.dalsemi.onewire.adapter.OneWireIOException
com.dalsemi.onewire.OneWireExceptioncom.dalsemi.onewire.adapter.OneWireIOExceptionpublic void open(NetworkPath lastPath) throws com.dalsemi.onewire.OneWireException, com.dalsemi.onewire.adapter.OneWireIOException
com.dalsemi.onewire.OneWireExceptioncom.dalsemi.onewire.adapter.OneWireIOExceptionpublic void close()
throws com.dalsemi.onewire.OneWireException,
com.dalsemi.onewire.adapter.OneWireIOException
com.dalsemi.onewire.OneWireExceptioncom.dalsemi.onewire.adapter.OneWireIOExceptionprivate void close(int downToInclusive)
throws com.dalsemi.onewire.OneWireException,
com.dalsemi.onewire.adapter.OneWireIOException
com.dalsemi.onewire.OneWireExceptioncom.dalsemi.onewire.adapter.OneWireIOException