|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dalsemi.onewire.utils.OWPath
1-Wire Network path.
Constructor Summary | |
OWPath(DSPortAdapter adapter)
Create a new empty path |
|
OWPath(DSPortAdapter adapter,
OWPath currentOWPath)
Create a new path with a starting path |
Method Summary | |
void |
add(OneWireContainer owc,
int channel)
Add a path element |
void |
close()
Close each element in the path in reverse order |
void |
copy(OWPath currentOWPath)
Copy the provided path into this path |
boolean |
equals(OWPath compareOWPath)
Compare this path with another path |
java.util.Enumeration |
getAllOWPathElements()
Get an enumeration of all of the path elements |
void |
open()
Open the path so that a remote device can be accessed |
java.lang.String |
toString()
Get a string representation of this path |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OWPath(DSPortAdapter adapter)
adapter
- where the path is basedpublic OWPath(DSPortAdapter adapter, OWPath currentOWPath)
adapter
- where the path is basedcurrentPath
- path to start this path onMethod Detail |
public void copy(OWPath currentOWPath)
currentOWPath
- path to copy frompublic void add(OneWireContainer owc, int channel)
owc
- device that has multiple channelschannel
- of device that represents this path elementpublic boolean equals(OWPath compareOWPath)
compareOWPath
- path to compare topublic java.util.Enumeration getAllOWPathElements()
public java.lang.String toString()
toString
in class java.lang.Object
public void open() throws OneWireException, OneWireIOException
OneWireIOException
- OneWireException
- public void close() throws OneWireException, OneWireIOException
OneWireIOException
- OneWireException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |