Package agents.markets
Interface DayAheadMarketTrader
-
- All Superinterfaces:
de.dlr.gitlab.fame.agent.AgentAbility
- All Known Implementing Classes:
AggregatorTrader
,ConventionalTrader
,DemandTrader
,ElectrolysisTrader
,FlexibilityTrader
,ImportTrader
,NoSupportTrader
,RenewableTrader
,StorageTrader
,SystemOperatorTrader
,Trader
,TraderWithClients
public interface DayAheadMarketTrader extends de.dlr.gitlab.fame.agent.AgentAbility
Interface for traders at theDayAheadMarket
- Author:
- Christoph Schimeczek
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DayAheadMarketTrader.OutputColumns
static class
DayAheadMarketTrader.Products
Products of traders interacting withDayAheadMarket
-
Field Summary
Fields Modifier and Type Field Description static String
ERR_CLEARING_TIMES_AMBIGUOUS
Error message ifClearingTimes
payload is ambiguousstatic String
ERR_CLEARING_TIMES_MISSING
Error message ifClearingTimes
payload is missing
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default List<de.dlr.gitlab.fame.time.TimeStamp>
extractTimesFromGateClosureInfoMessages(ArrayList<de.dlr.gitlab.fame.communication.message.Message> messages)
Searches for a singleDayAheadMarket.Products.GateClosureInfo
message in given messages and returns its timesdefault List<de.dlr.gitlab.fame.time.TimeStamp>
readGateClosureInfoMessage(de.dlr.gitlab.fame.communication.message.Message message)
Read aDayAheadMarket.Products.GateClosureInfo
message from a contractedDayAheadMarket
-
-
-
Field Detail
-
ERR_CLEARING_TIMES_MISSING
static final String ERR_CLEARING_TIMES_MISSING
Error message ifClearingTimes
payload is missing- See Also:
- Constant Field Values
-
ERR_CLEARING_TIMES_AMBIGUOUS
static final String ERR_CLEARING_TIMES_AMBIGUOUS
Error message ifClearingTimes
payload is ambiguous- See Also:
- Constant Field Values
-
-
Method Detail
-
extractTimesFromGateClosureInfoMessages
default List<de.dlr.gitlab.fame.time.TimeStamp> extractTimesFromGateClosureInfoMessages(ArrayList<de.dlr.gitlab.fame.communication.message.Message> messages)
Searches for a singleDayAheadMarket.Products.GateClosureInfo
message in given messages and returns its times- Parameters:
messages
- list of messages to search for a single one withClearingTimes
payload- Returns:
TimeStamp
s contained in the foundClearingTimes
payload- Throws:
IllegalArgumentException
- if not exactly one message contained a ClearingTimes payload
-
readGateClosureInfoMessage
default List<de.dlr.gitlab.fame.time.TimeStamp> readGateClosureInfoMessage(de.dlr.gitlab.fame.communication.message.Message message)
Read aDayAheadMarket.Products.GateClosureInfo
message from a contractedDayAheadMarket
- Parameters:
message
- to be read- Returns:
- Extracted times at which the market will be cleared
-
-