⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 availabilityinfo.java

📁 中間件開發详细说明:清华大学J2EE教程讲义(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上载源码成为会员下载此源码] [成为VIP会
💻 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 * * Author: Agustin Caminero * Organization: Universidad de Castilla La Mancha (UCLM), Spain. * Created on: Nov 2006. */package gridsim.resFailure;/** * This class is used by GridSim users to check whether a particular resource * is working or is totally failed. * * @author       Agustin Caminero * @since        GridSim Toolkit 4.1 */public class AvailabilityInfo{    private int resID;    private int srcID;    private boolean availability;    /**     * Creates a new object of this class     * @param res   a resource id     * @param src   the sender id     */    public AvailabilityInfo(int res, int src)    {        resID = res;        srcID = src;        availability = true;    // by default, true    }    /**     * Gets the source or sender id     * @return sender id     */    public int getSrcID() {        return srcID;    }    /**     * Gets the resource id     * @return resource id     */    public int getResID() {        return resID;    }    /**     * Checks the availability of this resource     * @return <tt>true</tt> if available, <tt>false</tt> otherwise     */    public boolean getAvailability() {        return availability;    }    /**     * Sets the source or sender id     * @param src   the sender id     */    public void setSrcID(int src) {        srcID = src;    }    /**     * Sets the resource id     * @param res   a resource id     */    public void setResID(int res) {        resID = res;    }    /**     * Sets the resource availability     * @param av    <tt>true</tt> if available, <tt>false</tt> otherwise     */    public void setAvailability(boolean av) {        availability = av;    }} // end class

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -