void function ( MarketTransaction arg0 ) { Order loc0 = lastOrder . get ( arg0 . getTimeslotIndex ( ) ) ; if ( loc0 == null ) log . error ( "srini_string" + arg0 + "srini_string" ) ; else if ( arg0 . getMWh ( ) == loc0 . getMWh ( ) ) lastOrder . put ( arg0 . getTimeslotIndex ( ) , null ) ; }
receives a new markettransaction . we look to see whether an order we have placed has cleared . concode_field_sep BrokerPropertiesService propertiesService concode_elem_sep double[] marketPrice concode_elem_sep double buyLimitPriceMax concode_elem_sep double meanMarketPrice concode_elem_sep double buyLimitPriceMin concode_elem_sep Logger log concode_elem_sep HashMap<Integer,Order> lastOrder concode_elem_sep BrokerContext broker concode_elem_sep double sellLimitPriceMax concode_elem_sep double sellLimitPriceMin concode_elem_sep TimeslotRepo timeslotRepo concode_elem_sep Random randomGen concode_elem_sep double[] marketMWh concode_elem_sep double minMWh concode_elem_sep PortfolioManager portfolioManager concode_field_sep double getMeanMarketPrice concode_elem_sep void activate concode_elem_sep void submitOrder concode_elem_sep Double computeLimitPrice concode_elem_sep void initialize