Constructor and Description |
---|
PointBid.Builder(MarketBasis marketBasis)
Constructor to create an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
PointBid.Builder |
add(double price,
double demand)
Creates a PricePoint with the supplied price and demand.
|
PointBid.Builder |
add(PricePoint pricePoint)
Adds the supplied pricePoint the PricePoint array.
|
PointBid |
build()
Uses the supplied parameters to create a new PointBid.
|
public PointBid.Builder(MarketBasis marketBasis)
marketBasis
- the MarketBasis
of the cluster.public PointBid.Builder add(PricePoint pricePoint)
pricePoint
- The point to addpublic PointBid.Builder add(double price, double demand)
price
- The price of the point that should be addeddemand
- The demand value of the point that should be added