Package entsoe

Class Utils

java.lang.Object
entsoe.Utils

public class Utils extends Object
Utility functions.
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • getTransnetBWGrossPrice

      public static BigDecimal getTransnetBWGrossPrice(BigDecimal spotPrice)
      Gross price example calculation for TransnetBW (Germany)
      Parameters:
      spotPrice - the spot price in cent/kWh
      Returns:
      The estimated Gross Price for transnetBW customers
    • padIntegerWithZeros

      public static String padIntegerWithZeros(int number, int minWidth)
      Pad integer with zeros
      Parameters:
      number - the number to pad
      minWidth - the desired length of the padded number
      Returns:
      the padded number
    • padIntegerWithSpaces

      public static String padIntegerWithSpaces(int number, int minWidth)
      Pad integer with spaces
      Parameters:
      number - the number to pad
      minWidth - the desired length of the padded number
      Returns:
      the padded number