16 package emlab.gen.role.market;
18 import org.springframework.beans.factory.annotation.Autowired;
20 import agentspring.role.Role;
21 import agentspring.role.RoleComponent;
43 logger.info(
"Clearing the commodity market for {}", market.getSubstance());
50 ClearingPoint clearingPoint = calculateClearingPoint(market, getCurrentTick());
52 if (clearingPoint != null) {
54 logger.info(
"Clearing: price " + clearingPoint.getPrice() +
" / volume " + clearingPoint.getVolume());
56 logger.warn(
"{} did not clear!", market);
61 public Reps getReps() {