|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.can.cbus.CbusAddress
public class CbusAddress
Utilities for handling CBUS addresses.
CBUS frames have a one byte command and length, optionally followed by data bytes. JMRI maps these into address strings.
Forms:
| Constructor Summary | |
|---|---|
CbusAddress(String s)
Construct from string without leading system or type letters |
|
| Method Summary | |
|---|---|
boolean |
check()
|
boolean |
checkSplit()
|
boolean |
equals(Object r)
Two addresses are equal if they result in the same numeric contents |
int |
hashCode()
|
CanMessage |
makeMessage()
|
CbusAddress[] |
split()
Split a string containing one or more addresses into individual ones. |
String |
toCanonicalString()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CbusAddress(String s)
| Method Detail |
|---|
public boolean equals(Object r)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic CanMessage makeMessage()
public boolean check()
public CbusAddress[] split()
public boolean checkSplit()
public String toString()
toString in class Objectpublic String toCanonicalString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||