Package communications.portable
Class BidsAtTime
- java.lang.Object
-
- communications.portable.BidsAtTime
-
- All Implemented Interfaces:
de.dlr.gitlab.fame.communication.transfer.Portable
public class BidsAtTime extends Object implements de.dlr.gitlab.fame.communication.transfer.Portable
Summary of multiple bids from one trader for one bidding time period- Author:
- Christoph Schimeczek
-
-
Constructor Summary
Constructors Constructor Description BidsAtTime()
required forPortable
sBidsAtTime(de.dlr.gitlab.fame.time.TimeStamp deliveryTime, long traderUuid, List<Bid> supplyBids, List<Bid> demandBids)
Create a Bid message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
de.dlr.gitlab.fame.time.TimeStamp
getDeliveryTime()
List<Bid>
getDemandBids()
List<Bid>
getSupplyBids()
long
getTraderUuid()
void
populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
-
-
-
Constructor Detail
-
BidsAtTime
public BidsAtTime()
required forPortable
s
-
BidsAtTime
public BidsAtTime(de.dlr.gitlab.fame.time.TimeStamp deliveryTime, long traderUuid, List<Bid> supplyBids, List<Bid> demandBids)
Create a Bid message- Parameters:
deliveryTime
- at which the bids shall be validtraderUuid
- id of the trader that is associated with the bidssupplyBids
- list of supplyBids, may be null or emptydemandBids
- list of demandBids, may be null or empty
-
-
Method Detail
-
addComponentsTo
public void addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
- Specified by:
addComponentsTo
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
populate
public void populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
- Specified by:
populate
in interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
getSupplyBids
public List<Bid> getSupplyBids()
- Returns:
- supply bids from the associated trader for the respective bidding time
-
getDemandBids
public List<Bid> getDemandBids()
- Returns:
- demand bids from the associated trader for the respective bidding time
-
getTraderUuid
public long getTraderUuid()
- Returns:
- the UUID of the trader associated with the bids
-
getDeliveryTime
public de.dlr.gitlab.fame.time.TimeStamp getDeliveryTime()
- Returns:
- time for which the bids were created
-
-