16 package emlab.gen.repository;
19 import org.springframework.stereotype.Repository;
50 cashFlow.setFrom(from);
52 cashFlow.setMoney(amount);
53 cashFlow.setType(type);
54 cashFlow.setTime(time);
55 cashFlow.setRegardingPowerPlant(plant);
56 from.setCash(from.getCash() - amount);
58 to.setCash(to.getCash() + amount);
79 Bid bid =
new Bid().persist();
80 bid.setBiddingMarket(market);
82 bid.setSupplyBid(isSupply);
85 bid.setAmount(amount);
86 bid.setStatus(Bid.SUBMITTED);
Bid submitBidToMarket(DecarbonizationMarket market, DecarbonizationAgent agent, long time, boolean isSupply, double price, double amount)
CashFlow createCashFlow(DecarbonizationAgent from, DecarbonizationAgent to, double amount, int type, long time, PowerPlant plant)