//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void NullFacility::receiveMessage(msg_ptr msg) { // is this a message from on high? if (msg->supplier()==this) { // file the order ordersWaiting_.push_front(msg); } else { throw CycException("NullFacility is not the supplier of this msg."); } }
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void RecipeReactor::receiveMessage(msg_ptr msg) { // is this a message from on high? if(msg->supplier()==this){ // file the order ordersWaiting_.push_front(msg); LOG(LEV_INFO5, "RReact") << name() << " just received an order."; } else { throw CycException("RecipeReactor is not the supplier of this msg."); } }