Class MAPAllowedServices

  • All Implemented Interfaces:
    DataObject, Serializable

    public class MAPAllowedServices
    extends BitStringWithNamedBits
    API for MAP-CH-DataTypes.AllowedServices. Generated from the following ASN.1 type definition.
     AllowedServices ::=
         BIT STRING (SIZE (2..8)) {
             firstServiceAllowed(0), -- firstService is the service indicated in the networkSignalInfo.
             secondServiceAllowed(1) -- secondService is the service indicated in the networkSignalInfo2.
         }
     
    Added in release 5. Other bits than are named here shall be discarded.

    Used as field type by MAPSendRoutingInfoRes_v3.

    See Also:
    Serialized Form
    • Constructor Detail

      • MAPAllowedServices

        public MAPAllowedServices()
        Constructs an object that has no bits set.
      • MAPAllowedServices

        public MAPAllowedServices​(int nbits)
        Constructs an object that has no bits set, initialised to accommodate the given number of bits.
        Parameters:
        nbits - initial number of bits
    • Method Detail

      • clearFirstServiceAllowed

        public MAPAllowedServices clearFirstServiceAllowed()
        Clears the bit for firstServiceAllowed to false.
        Returns:
        this
      • clearSecondServiceAllowed

        public MAPAllowedServices clearSecondServiceAllowed()
        Clears the bit for secondServiceAllowed to false.
        Returns:
        this
      • copyOf

        public static MAPAllowedServices copyOf​(BitString from)
        Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
        Parameters:
        from - the object from which to copy
        Returns:
        MAPAllowedServices
      • getFirstServiceAllowed

        public boolean getFirstServiceAllowed()
        Gets whether the bit for firstServiceAllowed is set or not.
        Returns:
        the named bit's value
      • getSecondServiceAllowed

        public boolean getSecondServiceAllowed()
        Gets whether the bit for secondServiceAllowed is set or not.
        Returns:
        the named bit's value
      • setFirstServiceAllowed

        public MAPAllowedServices setFirstServiceAllowed()
        Sets the bit for firstServiceAllowed to true.
        Returns:
        this
      • setSecondServiceAllowed

        public MAPAllowedServices setSecondServiceAllowed()
        Sets the bit for secondServiceAllowed to true.
        Returns:
        this
      • staticGetNamedBits

        public static BitStringWithNamedBits.NamedBit[] staticGetNamedBits()
        Gets the names of all bits of this type (not just the bits set in this value).
        Returns:
        array of NamedBit