亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gridsim.java

?? 一個非常著名的網格模擬器,能夠運行網格調度算法!
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * 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: GridSim.java,v 1.65 2006/03/09 05:56:12 anthony Exp $ */package gridsim;import gridsim.net.Link;import gridsim.filter.*;import java.io.*;import java.util.*;import eduni.simjava.*;/** * This class is mainly responsible in initialization, running and stopping of * the overall simulation. * <p> * GridSim must be initialized to set-up the * simulation environment before creating any other GridSim entities at the * user level. This method also prepares the system for simulation by creating * three GridSim internal entities - {@link gridsim.GridInformationService}, * {@link gridsim.GridSimShutdown}, {@link gridsim.GridStatistics}. Invoking the * {@link #startGridSimulation()} method starts the Grid simulation. * All the resource and user entities must be instantiated in between invoking * the above two methods. * <p> * Since GridSim version 3.0, all of the I/O methods have been moved * into {@link gridsim.GridSimCore}. * As a result, this class only concentrates on recording statistics and * managing Gridlets. In addition, there are three different ways to initialize * GridSim simulation. These methods are: * <ul> *     <li> by using *          {@link #init(int, Calendar, boolean, String[], String[], String)} *          method. <br> *          This method will create {@link gridsim.GridStatistics}, *          {@link gridsim.GridSimRandom}, {@link gridsim.GridSimShutdown} and *          {@link gridsim.GridInformationService} entity. <br> * *     <li> by using {@link #init(int, Calendar, boolean)} method. <br> *          This method will create {@link gridsim.GridSimRandom}, *          {@link gridsim.GridSimShutdown} and *          {@link gridsim.GridInformationService} entity. <br> * *     <li> by using {@link #init(int, Calendar, boolean, boolean)} method.<br> *          This method will create {@link gridsim.GridSimRandom} and *          {@link gridsim.GridSimShutdown}. A different type of *          {@link gridsim.GridInformationService} entity needs to be entered *          using {@link #setGIS(GridInformationService)} method before running *          the simulation. * </ul> * * @author       Manzur Murshed and Rajkumar Buyya * @since        GridSim Toolkit 1.0 * @see eduni.simjava.Sim_entity * @see gridsim.GridSimCore * @see gridsim.GridInformationService * @see gridsim.GridSimShutdown * @see gridsim.GridStatistics * @invariant $none */public class GridSim extends GridSimCore{    // array[0] = gridlet id, [1] = user Id, and [2] = destinated resource id    private final int ARRAY_SIZE = 3;    private final int SIZE = 12;     // Integer object size incl. overhead    private final int RESULT = 1;    // array[0] = gridlet id, [1] = result    /////////////////////////// STATIC variables ////////////////////    /**     * Simulation start date. This object is initialized     * during the call to {@link #init(int, Calendar, boolean, String[],     *             String[], String)} or     * {@link #init(int, Calendar, boolean)}     */    public static Date SimulationStartDate = null;    /**     * A Random object. This object is initialized during the call to     * {@link #init(int, Calendar, boolean, String[], String[], String)} or     * {@link #init(int, Calendar, boolean)}.     */    public static GridSimRandom rand = null;    /** Pause for a certain time delay (in seconds) before a resource     * registers to a Regional GIS entity.     * By default, a resource will pause for 10 seconds before registering.     * As a rule of thumb, if a network topology is huge (involving several     * routers), then a resource needs to pause much longer.     */    public static int PAUSE = 10;  // pause before registering to regional GIS    private static int gisID_ = -1;         // id of GIS entity    private static int shutdownID_ = -1;    // id of GridSimShutdown entity    private static int statsID_ = -1;       // id of GridStatistics entity    private static Calendar calendar_ = null;    // a Calendar object    private static GridInformationService gis_ = null;   // a GIS object    private final static int NOT_FOUND = -1;     // a constant    ////////////////////////////////////////////////////////////////////////    /**     * Allocates a new GridSim object     * <b>without</b> NETWORK communication channels: "input" and     * "output" Sim_port. In summary, this object has <tt>NO</tt>     * network communication or bandwidth speed.     * @param name       the name to be associated with this entity (as     *                   required by Sim_entity class from simjava package)     * @throws Exception This happens when creating this entity before     *                   initializing GridSim package or this entity name is     *                   <tt>null</tt> or empty     * @see gridsim.GridSim#init(int, Calendar, boolean, String[], String[],     *          String)     * @see gridsim.GridSim#init(int, Calendar, boolean)     * @see eduni.simjava.Sim_entity     * @pre name != null     * @post $none     */    public GridSim(String name) throws Exception {        super(name);    }    /**     * Allocates a new GridSim object     * <b>with</b> NETWORK communication channels: "input" and     * "output" Sim_port. In addition, this method will create <tt>Input</tt>     * and <tt>Output</tt> object.     * @param name       the name to be associated with this entity (as     *                   required by Sim_entity class from simjava package)     * @param baudRate   network communication or bandwidth speed     * @throws Exception This happens when creating this entity before     *                   initializing GridSim package or this entity name is     *                   <tt>null</tt> or empty     * @see gridsim.GridSim#init(int, Calendar, boolean, String[], String[],     *          String)     * @see gridsim.GridSim#init(int, Calendar, boolean)     * @see eduni.simjava.Sim_entity     * @see gridsim.net.Input     * @see gridsim.net.Output     * @pre name != null     * @pre baudRate > 0.0     * @post $none     */    public GridSim(String name, double baudRate) throws Exception {        super(name, baudRate);    }    /**     * Allocates a new GridSim object     * <b>with</b> NETWORK communication channels: "input" and     * "output" Sim_port. In addition, this method will create <tt>Input</tt>     * and <tt>Output</tt> object.     * <p>     * Use this constructor in a wired network.     *     * @param name       the name to be associated with this entity (as     *                   required by Sim_entity class from simjava package)     * @param link       the physical link that connects this entity     * @throws Exception This happens when creating this entity before     *                   initializing GridSim package or this entity name is     *                   <tt>null</tt> or empty     * @see gridsim.GridSim#init(int, Calendar, boolean, String[], String[],     *          String)     * @see gridsim.GridSim#init(int, Calendar, boolean)     * @see eduni.simjava.Sim_entity     * @see gridsim.net.Input     * @see gridsim.net.Output     * @pre name != null     * @pre link != null     * @post $none     */    public GridSim(String name, Link link) throws Exception {        super(name, link);    }    /**     * Gets simulation start date. If the return object is     * <tt>null</tt>, then need to initialize it by calling     * {@link #init(int, Calendar, boolean, String[], String[], String)} or     * {@link #init(int, Calendar, boolean)}     *     * @return a Date object or <tt>null</tt> if it is empty     * @deprecated As of GridSim 2.1, replaced by     *             {@link #getSimulationStartDate()}     * @see java.util.Date     * @pre $none     * @post $none     */    public static Date GetSimulationStartDate() {        return getSimulationStartDate();    }    /**     * Gets a new copy of simulation start date. If the return object     * is <tt>null</tt>, then need to initialize it by calling     * {@link #init(int, Calendar, boolean, String[], String[], String)} or     * {@link #init(int, Calendar, boolean)}     *     * @return a new copy of Date object or <tt>null</tt> if GridSim hasn't     *         been initialized     * @see java.util.Date     * @pre $none     * @post $none     */    public static Date getSimulationStartDate()    {        // make a new copy        Date clone = SimulationStartDate;        if (SimulationStartDate != null) {            clone = (Date) SimulationStartDate.clone();        }        return clone;    }    /**     * Gets a new copy of initial simulation Calendar.     * @return a new copy of Calendar object or <tt>null</tt> if GridSim hasn't     *         been initialized     * @see gridsim.GridSim#init(int, Calendar, boolean, String[], String[],     *      String)     * @see gridsim.GridSim#init(int, Calendar, boolean)     * @pre $none     * @post $none     */    public static Calendar getSimulationCalendar()    {        // make a new copy        Calendar clone = calendar_;        if (calendar_ != null) {            clone = (Calendar) calendar_.clone();        }        return clone;    }    /**     * Initializes GridSim parameters.     * This method should be called before creating any entities.     * <p>     * Inside this method, it will create the following GridSim entities:     * <ul>     *     <li>GridSimRandom     *     <li>GridStatistics     *     <li>GridInformationService     *     <li>GridSimShutdown     * </ul>     * <p>     * The Calendar object can be specified using     * <tt>Calendar.getInstance()</tt> to denote the start of the simulation     * time.     * This simulation time is <b>very important</b> in handling     * advanced reservations functionalities.     *     * @param numUser  the number of User Entities created.     *                 This parameters indicates that     *                 {@link gridsim.GridSimShutdown} first waits for     *                 User Entities's END_OF_SIMULATION signal before     *                 issuing terminate signal to other entities     * @param cal          starting time for this simulation. If it is     *        <tt>null</tt>, then the time will be taken from     *        <tt>Calendar.getInstance()</tt>.     * @param traceFlag    true if GridSim trace need to be written     * @param excludeFromFile  an array of String containing list of files to     *                         be excluded from statistics     * @param excludeFromProcessing   an array of String containing list of     *                                processings to be excluded from writing     *                                into a file     * @param reportWriterName  a <tt>ReportWriter</tt> entity name. This entity     *                          can be found inside a gridbroker package.     * @deprecated As of GridSim 2.1, replaced by     *             {@link #init(int, Calendar, boolean, String[],     *             String[], String)}     * @see gridsim.GridSimShutdown     * @see gridsim.GridStatistics     * @see gridsim.GridInformationService     * @see gridsim.GridSimRandom     * @pre numUser >= 0     * @post $none     */    public static void Init(int numUser, Calendar cal, boolean traceFlag,            String[] excludeFromFile, String[] excludeFromProcessing,            String reportWriterName)    {        init(numUser, cal, traceFlag, excludeFromFile,                excludeFromProcessing, reportWriterName);    }    /**     * Initializes GridSim parameters.     * This method should be called before creating any entities.     * <p>     * Inside this method, it will create the following GridSim entities:     * <ul>     *     <li>GridSimRandom     *     <li>GridStatistics     *     <li>GridInformationService     *     <li>GridSimShutdown     * </ul>     * <p>     * The Calendar object can be specified using     * <tt>Calendar.getInstance()</tt> to denote the start of the simulation     * time.     * This simulation time is <b>very important</b> in handling     * advanced reservations functionalities.     *     * @param numUser  the number of User Entities created.     *                 This parameters indicates that     *                 {@link gridsim.GridSimShutdown} first waits for     *                 User Entities's END_OF_SIMULATION signal before     *                 issuing terminate signal to other entities     * @param cal          starting time for this simulation. If it is     *        <tt>null</tt>, then the time will be taken from     *        <tt>Calendar.getInstance()</tt>.     * @param traceFlag    true if GridSim trace need to be written     * @param excludeFromFile  an array of String containing list of files to     *                         be excluded from statistics     * @param excludeFromProcessing   an array of String containing list of     *                                processings to be excluded from writing     *                                into a file     * @param reportWriterName  a <tt>ReportWriter</tt> entity name. This entity     *                          can be found inside a gridbroker package.     * @see gridsim.GridSimShutdown     * @see gridsim.GridStatistics     * @see gridsim.GridInformationService     * @see gridsim.GridSimRandom     * @pre numUser >= 0     * @post $none     */    public static void init(int numUser, Calendar cal, boolean traceFlag,            String[] excludeFromFile, String[] excludeFromProcessing,            String reportWriterName)    {        try        {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国免费一区二区三区| 91福利在线看| 久久亚洲精精品中文字幕早川悠里 | 日韩欧美精品在线视频| 石原莉奈在线亚洲二区| 91精品欧美久久久久久动漫 | 激情偷乱视频一区二区三区| 久久久久亚洲蜜桃| 国产精品一二三区在线| 国产精品久久久久永久免费观看 | 国产精品网站在线观看| thepron国产精品| 亚洲免费资源在线播放| 欧美精品三级日韩久久| 国产尤物一区二区| 成人欧美一区二区三区视频网页| 色嗨嗨av一区二区三区| 日日夜夜精品免费视频| 久久精品人人爽人人爽| 92精品国产成人观看免费| 亚洲成av人影院在线观看网| 日韩欧美一区二区免费| 成人一级片网址| 亚洲综合色成人| 精品第一国产综合精品aⅴ| 91视频观看视频| 免费观看在线综合色| 中文字幕中文字幕中文字幕亚洲无线| 在线观看成人小视频| 麻豆91在线播放免费| 中文字幕在线一区| 欧美精品在线观看播放| 国产一区二区影院| 亚洲影视在线播放| 久久精品一区二区| 欧美日韩黄色影视| 成人高清在线视频| 免费成人av在线| 亚洲欧洲一区二区三区| 欧美大片在线观看一区二区| 91欧美一区二区| 国产成人精品www牛牛影视| 无吗不卡中文字幕| 中文字幕一区在线观看视频| 欧美一级一区二区| 欧美系列亚洲系列| a美女胸又www黄视频久久| 加勒比av一区二区| 日韩成人午夜精品| 亚洲精品中文在线影院| 国产清纯在线一区二区www| 日韩精品一区二区三区三区免费 | 欧美日韩国产一区| caoporm超碰国产精品| 国产精一区二区三区| 视频一区二区三区在线| 一区二区三区欧美在线观看| 中文字幕欧美日本乱码一线二线| 91精品国产综合久久久蜜臀粉嫩| 99视频热这里只有精品免费| 国产精品2024| 国产一区二区在线视频| 毛片一区二区三区| 天天综合色天天综合| 亚洲一区二区三区美女| 亚洲欧美经典视频| 亚洲欧洲日产国码二区| 中文字幕高清一区| 国产色一区二区| 国产亚洲成av人在线观看导航| 日韩三级视频在线看| 欧美一区二区三区公司| 91精品国产综合久久国产大片| 在线观看91精品国产入口| 91丨九色丨国产丨porny| 99国产精品一区| a级高清视频欧美日韩| 成人免费观看视频| 成人午夜免费av| av资源网一区| 99re热这里只有精品视频| av毛片久久久久**hd| 色综合久久久网| 在线亚洲高清视频| 欧美在线观看一二区| 在线亚洲+欧美+日本专区| 欧美亚洲动漫精品| 91精品国产综合久久香蕉麻豆| 欧美一区二区三区四区视频| 欧美一级理论性理论a| 精品国产免费视频| 国产喷白浆一区二区三区| 国产精品视频麻豆| 亚洲欧美日韩国产综合| 亚洲国产日韩综合久久精品| 免费三级欧美电影| 成人免费av在线| 欧美在线一二三| 日韩欧美aaaaaa| 国产精品视频一二| 亚洲图片一区二区| 黄色小说综合网站| 99精品视频一区二区| 欧美亚洲国产怡红院影院| 欧美mv日韩mv亚洲| 国产拍欧美日韩视频二区| 亚洲老妇xxxxxx| 久久www免费人成看片高清| 成人涩涩免费视频| 欧美午夜精品久久久| 日韩精品一区二区三区在线| 国产精品白丝在线| 免费在线观看视频一区| 成人免费视频网站在线观看| 欧美日韩一二三| 国产日韩影视精品| 亚洲444eee在线观看| 精品一区二区久久| 一本到三区不卡视频| 欧美成人免费网站| 亚洲人妖av一区二区| 久久国产综合精品| 91片在线免费观看| 久久夜色精品一区| 亚洲国产精品久久久久秋霞影院| 精品综合久久久久久8888| 欧美主播一区二区三区美女| 日韩精品一区二区三区四区| 亚洲精品免费播放| 国产一区二区91| 在线播放日韩导航| 亚洲欧美另类综合偷拍| 国产资源在线一区| 欧美一级搡bbbb搡bbbb| 亚洲精品国产一区二区精华液| 久久国产人妖系列| 欧美三级在线播放| 国产精品福利影院| 国产成人在线视频网站| 91超碰这里只有精品国产| 亚洲视频网在线直播| 国产精品一卡二| 日韩免费在线观看| 天堂一区二区在线免费观看| 91丨九色丨蝌蚪丨老版| 日本一区二区三区久久久久久久久不| 免费看黄色91| 欧美一区二区三区婷婷月色| 亚洲六月丁香色婷婷综合久久| 狠狠色狠狠色合久久伊人| 91麻豆精品国产91久久久久| 一区二区三区欧美| 99精品久久久久久| 国产精品天干天干在线综合| 国产精品资源网站| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国产盗摄女厕一区二区三区| 日韩精品一区二区三区在线播放| 午夜欧美在线一二页| 色噜噜狠狠成人网p站| 中文字幕一区二区三区不卡 | 久久久久久久久伊人| 久久99国产精品麻豆| 精品日本一线二线三线不卡| 日本在线不卡视频| 欧美疯狂性受xxxxx喷水图片| 午夜a成v人精品| 欧美日韩精品欧美日韩精品| 午夜av电影一区| 欧美日韩精品欧美日韩精品一综合| 一区二区三区日韩精品视频| 欧洲国内综合视频| 午夜欧美大尺度福利影院在线看| 91福利在线导航| 亚洲va国产va欧美va观看| 欧美在线三级电影| 日韩精品一二三区| 欧美一区2区视频在线观看| 精品一二三四区| 国产欧美日韩激情| 成人av在线影院| 亚洲精选在线视频| 91精品中文字幕一区二区三区| 日本麻豆一区二区三区视频| 26uuu另类欧美亚洲曰本| 国产一区日韩二区欧美三区| 日本一区二区三级电影在线观看| 成人晚上爱看视频| 亚洲激情第一区| 日韩无一区二区| 国产一区二区视频在线播放| 国产农村妇女毛片精品久久麻豆| 99久久精品国产精品久久| 亚洲激情自拍偷拍| 91麻豆精品国产91久久久久久久久| 精品系列免费在线观看| 国产精品久线在线观看| 欧美日韩成人在线| 国产精品一区二区在线播放 | 久久综合狠狠综合久久激情 |