Package jmri.jmrix.openlcb
Class OlcbUtils
java.lang.Object
jmri.jmrix.openlcb.OlcbUtils
Helper functions used by multiple implementations but specific to JMRI to not go to the
OpenLCB.jar.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription(package private) static booleanTests whether a given NamedBead is an OpenLCB implementation.(package private) static intoverridePCFlagsFromProperties(NamedBean parent, int defaultFlags) Checks the NamedBean properties and updates the BitProducerConsumer flags based on them.
-
Field Details
-
PROPERTY_IS_AUTHORITATIVE
- See Also:
-
PROPERTY_IS_PRODUCER
- See Also:
-
PROPERTY_IS_CONSUMER
- See Also:
-
PROPERTY_QUERY_AT_STARTUP
- See Also:
-
PROPERTY_LISTEN
- See Also:
-
PROPERTY_LISTEN_INVALID
- See Also:
-
-
Method Details
-
overridePCFlagsFromProperties
Checks the NamedBean properties and updates the BitProducerConsumer flags based on them.- Parameters:
parent- NamedBean (OlcbSensor or OlcbTurnout) whose properties we'll checkdefaultFlags- previous value of the flags.- Returns:
- new value of flags. If not property is set on the object, then == defaultFlags.
-
isOlcbBean
Tests whether a given NamedBead is an OpenLCB implementation.- Parameters:
b- named bean object (e.g. Turnout object or Sensor object).- Returns:
- true if it is an Olcb implementation.
-