Class DefaultMeterFeatures

  • All Implemented Interfaces:
    MeterFeatures

    public final class DefaultMeterFeatures
    extends java.lang.Object
    implements MeterFeatures
    Default implementation of MeterFeatures.
    • Method Detail

      • deviceId

        public DeviceId deviceId()
        Description copied from interface: MeterFeatures
        Return the device id to which this meter features apply.
        Specified by:
        deviceId in interface MeterFeatures
        Returns:
        the device id
      • maxMeter

        public long maxMeter()
        Description copied from interface: MeterFeatures
        Returns the maximum number of meters accepted by the device.
        Specified by:
        maxMeter in interface MeterFeatures
        Returns:
        the maximum meter value.
      • bandTypes

        public java.util.Set<Band.Type> bandTypes()
        Description copied from interface: MeterFeatures
        Returns band types supported.
        Specified by:
        bandTypes in interface MeterFeatures
        Returns:
        the band types supported.
      • unitTypes

        public java.util.Set<Meter.Unit> unitTypes()
        Description copied from interface: MeterFeatures
        Returns unit types available for meters.
        Specified by:
        unitTypes in interface MeterFeatures
        Returns:
        the unit types available.
      • isBurstSupported

        public boolean isBurstSupported()
        Description copied from interface: MeterFeatures
        Returns if burst size is available.
        Specified by:
        isBurstSupported in interface MeterFeatures
        Returns:
        burst availability
      • isStatsSupported

        public boolean isStatsSupported()
        Description copied from interface: MeterFeatures
        Returns if statistics collection is available.
        Specified by:
        isStatsSupported in interface MeterFeatures
        Returns:
        statistics availability
      • maxBands

        public short maxBands()
        Description copied from interface: MeterFeatures
        Returns the maximum bands per meter.
        Specified by:
        maxBands in interface MeterFeatures
        Returns:
        the max bands value
      • maxColor

        public short maxColor()
        Description copied from interface: MeterFeatures
        Returns the maximum colors value for DiffServ operation.
        Specified by:
        maxColor in interface MeterFeatures
        Returns:
        the maximum colors value.
      • features

        public java.util.Set<MeterFeaturesFlag> features()
        Description copied from interface: MeterFeatures
        Returns features flags that supported for meter actions by device.
        Specified by:
        features in interface MeterFeatures
        Returns:
        meter features flags otherwise empty set.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object