📄 responder.java
字号:
/*
* Title: GridSim Toolkit
* Description: GridSim (Grid Simulation) Toolkit for Modeling and Simulation
* of Parallel and Distributed Systems such as Clusters and Grids
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* $Id: Responder.java,v 1.1 2006/03/09 05:29:22 anthony Exp $
*/
package gridsim.auction;
/**
* This interface must be implemented by the
* class responsible for defining the other side
* of an auction (ie. not the auctioneer's side)
*
* @author Marcos Dias de Assuncao
* @since GridSim Toolkit 4.0
*
* @see gridsim.auction.AuctionTags
* @see gridsim.auction.Message
*/
public interface Responder {
/**
* This method is invoked by the observer
* when a Call for Bids is received
* @param msg the Call for Bids
* @return the message to be sent back to the auctioneer by the observer
*/
Message onReceiveCfb(MessageCallForBids msg);
/**
* This method is invoked by the observer when a
* message informing the outcome is received
* @param msg the message informing the outcome
* @return the message to be sent back to the auctioneer by the observer
*/
Message onReceiveInformOutcome(MessageInformOutcome msg);
/**
* This message is invoked when the observer receives a message
* rejecting a proposal previously sent
* @param msg the reject message
* @return the message to be sent back to the auctioneer by the observer
*/
Message onReceiveRejectProposal(MessageRejectBid msg);
/**
* This message is invoked when the observer receives a message
* informing about the start of an auction
* @param inform the message informing the start of the auction
* @return the message to be sent back to the auctioneer by the observer
*/
Message onReceiveStartAuction(MessageInformStart inform);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -