|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.openlcb.OlcbAddress
public class OlcbAddress
Utilities for handling OpenLCB event messages as addresses.
OpenLCB event messages have header information, plus an EventID in the data part. JMRI maps these into address strings.
Forms:
| Constructor Summary | |
|---|---|
OlcbAddress(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()
|
OlcbAddress[] |
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 OlcbAddress(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 OlcbAddress[] 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 | |||||||||