Class Gbtx


  • class Gbtx
    extends java.lang.Object

    This class encapsulates the GBTX register set.

    GBTX register descriptors are unmarshalled into statically accessible members of this Gbtx class.

    Note that the class members are static but unfortunately not immutable because of the need to use JAXB setters.

    • Field Detail

      • csrSize

        public static int csrSize
      • fsmStates

        public static java.util.ArrayList<java.lang.String> fsmStates
    • Constructor Detail

      • Gbtx

        public Gbtx()

        No-argument constructor called by unmarshaller

    • Method Detail

      • setCsrSize

        public void setCsrSize​(int csrSize)
      • setDescriptors

        public void setDescriptors​(java.util.ArrayList<RegisterDescriptor> descriptors)
      • setFsmStates

        public void setFsmStates​(java.util.ArrayList<java.lang.String> fsmStates)
      • getFsmStates

        public java.util.ArrayList<java.lang.String> getFsmStates()
      • get

        public static RegisterDescriptor get​(java.lang.String key)

        Get the descriptor for the given key

        Parameters:
        key - The register bit-field key
        Returns:
        The descriptor
      • stream

        public static java.util.stream.Stream<RegisterDescriptor> stream​(java.lang.String regex)

        Get a stream of registers that match the supplied regex

        Parameters:
        regex - The pattern to match with the bit-field key
        Returns:
        The stream