/** * Remove a buyer from the registry as they exit the market * * @param buyer buyer exiting the market */ public void deregisterBuyer(EconomicAgent buyer) { boolean isNew = buyers.remove(buyer); assert isNew; // make sure it wasn't there before! if (MacroII.hasGUI()) { // todo logtodo network.removeAgent(buyer); } }
/** * Remove a seller from the registry as they exit the market * * @param seller seller exiting the market */ public void deregisterSeller(EconomicAgent seller) { boolean isNew = sellers.remove(seller); assert isNew; // make sure it wasn't there before! if (MacroII.hasGUI()) { // todo logtodo // remove agent to the network network.removeAgent(seller); } }