Class FixedElementCalculator

    • Constructor Detail

      • FixedElementCalculator

        public FixedElementCalculator()
    • Method Detail

      • calculateUnits

        public int calculateUnits​(Binary binElement)
        Description copied from interface: NamedTopic.ElementCalculator
        Calculate cost for the specified element.
        Specified by:
        calculateUnits in interface NamedTopic.ElementCalculator
        Parameters:
        binElement - the element value (in serialized Binary form) to evaluate for unit cost
        Returns:
        an integer value 0 or greater, with a larger value signifying a higher cost