Class ElectrolysisTrader

    • Field Detail

      • electrolyzer

        protected final Electrolyzer electrolyzer
        Electrolyzer device used for hydrogen production
      • strategist

        protected final ElectrolyzerStrategist strategist
        Strategist used to plan the dispatch of the electrolyzer device and the bidding at the day-ahead market
      • lastProducedHydrogenInMWH

        protected double lastProducedHydrogenInMWH
        Amount of hydrogen produced based on the last electricity price clearing
      • lastClearingTime

        protected de.dlr.gitlab.fame.time.TimeStamp lastClearingTime
        First TimeStamp of the last electricity price clearing interval
    • Constructor Detail

      • ElectrolysisTrader

        public ElectrolysisTrader​(de.dlr.gitlab.fame.agent.input.DataProvider data)
                           throws de.dlr.gitlab.fame.agent.input.ParameterData.MissingDataException
        Creates a new ElectrolysisTrader based on given input parameters
        Parameters:
        data - configured input
        Throws:
        de.dlr.gitlab.fame.agent.input.ParameterData.MissingDataException - if any required input is missing
    • Method Detail

      • prepareBids

        protected void prepareBids​(ArrayList<de.dlr.gitlab.fame.communication.message.Message> input,
                                   List<de.dlr.gitlab.fame.communication.Contract> contracts)
        Prepares and sends Bids to one contracted exchange
        Parameters:
        input - one GateClosureInfo message containing ClearingTimes
        contracts - single contract with a DayAheadMarket
      • digestAwards

        protected void digestAwards​(ArrayList<de.dlr.gitlab.fame.communication.message.Message> messages,
                                    List<de.dlr.gitlab.fame.communication.Contract> contracts)
        Digests award information from DayAheadMarket, writes dispatch
        Parameters:
        messages - award information received from DayAheadMarket
        contracts - none