Package jmri.jmrix.can.cbus
Enum CbusFilterType
- All Implemented Interfaces:
Serializable,Comparable<CbusFilterType>,java.lang.constant.Constable
ENUM to represent various CBUS OPC Filters.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintaction(AbstractMessage m, CbusFilter cf) Perform Filter check for a particular message.static final EnumSet<CbusFilterType>allFilters(int opc) Get All Filters for a particular OPCfinal booleanShould the Filter always be displayed?final CbusFilterTypeGet Filter Categorystatic final Set<CbusFilterType>Get an EnumSet of Category Headsstatic CbusFilterTypegetFilterByName(String name) Get Filter Type by name.final StringgetName()Get Filter NameGet ToolTip Text for the Filterfinal booleanIs the Filter a parent of a category?final booleanGet if the Filter needs to display a number spinnerstatic CbusFilterTypeReturns the enum constant of this type with the specified name.static CbusFilterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CFIN
-
CFOUT
-
CFEVENT
-
CFEVENTMIN
-
CFEVENTMAX
-
CFON
-
CFOF
-
CFSHORT
-
CFLONG
-
CFSTD
-
CFREQUEST
-
CFRESPONSE
-
CFED0
-
CFED1
-
CFED2
-
CFED3
-
CFDATA
-
CFACDAT
-
CFDDES
-
CFRQDAT
-
CFARDAT
-
CFDDRS
-
CFRQDDS
-
CFCABDAT
-
CFCS
-
CFCSAQRL
-
CFCSKA
-
CFCSDSPD
-
CFCSFUNC
-
CFCSPROG
-
CFCSLC
-
CFCSC
-
CFNDCONFIG
-
CFNDSETUP
-
CFNDVAR
-
CFNDEV
-
CFNDNUM
-
CFMISC
-
CFEXTRTR
-
CFNETWK
-
CFCLOCK
-
CFOTHER
-
CFUNKNOWN
-
CFNODE
-
CFNODEMIN
-
CFNODEMAX
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
action
Perform Filter check for a particular message. Can be overridden by specific filters.- Parameters:
m- CanMessage or CanReplycf- main CbusFilter instance- Returns:
- Filter category which blocked, else -1 or -2 if passed
-
getName
Get Filter Name- Returns:
- Filter Name
-
getCategory
Get Filter Category- Returns:
- Filter Category, else null if Category Head
-
getCatHeads
Get an EnumSet of Category Heads- Returns:
- set
-
isCategoryHead
Is the Filter a parent of a category?- Returns:
- true if category parent
-
alwaysDisplay
Should the Filter always be displayed?- Returns:
- true if category head or in / out filter.
-
showSpinners
Get if the Filter needs to display a number spinner- Returns:
- true to display a spinner
-
allFilters
Get All Filters for a particular OPC- Parameters:
opc- OPC to get Filter List for- Returns:
- set of Filters to use for the OPC.
-
getToolTip
Get ToolTip Text for the Filter- Returns:
- HMTL list of OPCs with description, may be null if no ToolTip
-
getFilterByName
Get Filter Type by name.- Parameters:
name- the #getName string to search for.- Returns:
- Filter Type, or null if not found.
-