|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.can.cbus.CbusEventFilter
public class CbusEventFilter
Class to implement filtering of CBUS events.
| Constructor Summary | |
|---|---|
CbusEventFilter()
Creates a new instance of CbusEventFilter |
|
| Method Summary | |
|---|---|
boolean |
filter(CanMessage m)
Filter an event, based on previous settings. |
boolean |
filter(CanReply r)
|
Color |
getColor()
|
void |
setColor(Color c)
|
void |
setEv(int n)
|
void |
setEvEnable(boolean b)
Set whether Ev (event number) will be included in filter. |
void |
setNn(int n)
|
void |
setNnEnable(boolean b)
Set whether NN (Node Number) will be included in filter. |
void |
setType(int n)
Set value of type to match. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CbusEventFilter()
| Method Detail |
|---|
public boolean filter(CanMessage m)
m - CanMessage to filter.
public boolean filter(CanReply r)
public void setNnEnable(boolean b)
public void setEvEnable(boolean b)
public void setNn(int n)
public void setEv(int n)
public void setType(int n)
CbusConstants for
values; CbusConstants.EVENT_EITHER matches either ON or OFF.
public void setColor(Color c)
public Color getColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||