亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲综合色网站| 日韩高清国产一区在线| 亚洲一级在线观看| 国产美女一区二区三区| 在线国产亚洲欧美| 久久综合网色—综合色88| 亚洲国产欧美一区二区三区丁香婷| 久久91精品久久久久久秒播| 色婷婷久久久久swag精品| 国产午夜精品一区二区三区四区| 天堂成人国产精品一区| 欧洲国内综合视频| 中文字幕一区视频| 国产成人免费视频精品含羞草妖精| 日韩一区二区在线观看| 亚洲综合视频在线| 99国内精品久久| 国产精品毛片a∨一区二区三区| 老汉av免费一区二区三区| 欧美精品粉嫩高潮一区二区| 夜夜精品视频一区二区| 色综合久久中文综合久久97| 国产欧美日韩在线| 国产精品一区二区x88av| 在线综合+亚洲+欧美中文字幕| 亚洲影视资源网| 欧美性生活一区| 亚洲美女淫视频| 一本一本大道香蕉久在线精品| 国产精品美日韩| 风间由美一区二区三区在线观看 | 成人免费在线视频| 国产成人自拍在线| 国产午夜亚洲精品不卡| 国产成人精品免费视频网站| 国产日本欧洲亚洲| 96av麻豆蜜桃一区二区| 亚洲色图.com| 91黄色免费网站| 天堂在线一区二区| 欧美成人欧美edvon| 国产又黄又大久久| 国产精品你懂的在线| caoporn国产精品| 亚洲美女屁股眼交| 欧美精品日日鲁夜夜添| 全国精品久久少妇| 久久久久99精品一区| 国产成人免费视频一区| 亚洲色图欧洲色图婷婷| 欧美日韩在线综合| 麻豆国产欧美日韩综合精品二区| 久久久亚洲午夜电影| 成人动漫一区二区| 亚洲主播在线观看| 精品少妇一区二区| 波多野结衣亚洲一区| 亚洲一区在线观看网站| 欧美一区二区三区日韩| 国产精品69毛片高清亚洲| 日韩毛片在线免费观看| 欧美日韩成人激情| 国产精品一区三区| 亚洲丝袜美腿综合| 91精品国产欧美一区二区| 国产成a人无v码亚洲福利| 中文字幕一区日韩精品欧美| 9191久久久久久久久久久| 国产99久久久国产精品免费看| 一区二区三区在线高清| 日韩精品一区二区三区四区视频 | 日韩1区2区3区| 久久精品亚洲一区二区三区浴池| www.欧美日韩国产在线| 午夜精品影院在线观看| 欧美国产一区在线| 欧美一区二区三区在线视频| a美女胸又www黄视频久久| 日韩av成人高清| 亚洲人成在线观看一区二区| 精品乱人伦小说| 欧美日韩中文国产| 成人精品高清在线| 玖玖九九国产精品| 亚洲午夜久久久久中文字幕久| 久久久国产精品麻豆| 欧美日本免费一区二区三区| 成人av手机在线观看| 免播放器亚洲一区| 一区二区三区四区在线免费观看| 精品国产电影一区二区| 欧美麻豆精品久久久久久| 99综合影院在线| 久久99精品久久久久久久久久久久 | 国产精品久久久久aaaa樱花| 日韩欧美另类在线| 在线播放国产精品二区一二区四区| 精品久久五月天| 在线播放欧美女士性生活| 色就色 综合激情| 成人黄色av电影| 国产成人av电影在线观看| 久久av老司机精品网站导航| 日日夜夜精品视频免费| 亚洲尤物视频在线| 亚洲综合一区二区| 亚洲女同一区二区| 中文字幕日韩一区| 中文字幕 久热精品 视频在线| 久久一留热品黄| 日韩免费一区二区| 欧美精品九九99久久| 欧美肥妇毛茸茸| 91精品午夜视频| 欧美丰满一区二区免费视频 | 国产白丝网站精品污在线入口| 精品在线播放午夜| 免费一级片91| 韩国成人福利片在线播放| 久久99九九99精品| 国产精品一线二线三线| 国产99久久久国产精品潘金网站| 国产精品一区二区久久不卡| 免费观看91视频大全| 亚洲高清在线精品| 天堂影院一区二区| 蜜桃av一区二区三区电影| 黄一区二区三区| 成人a免费在线看| 一本大道久久精品懂色aⅴ| 欧美私模裸体表演在线观看| 欧美日本一道本在线视频| 精品少妇一区二区三区在线视频 | 国产蜜臀av在线一区二区三区| 亚洲国产成人午夜在线一区| 亚洲人成网站在线| 首页国产丝袜综合| 国产精品一区二区男女羞羞无遮挡 | 亚洲一区二区不卡免费| 日韩国产在线观看| 国产成人在线影院| 99re热视频精品| 欧美日韩国产另类不卡| 2019国产精品| 亚洲精品视频在线观看免费| 日韩av中文在线观看| 国产成人高清视频| 欧美性受xxxx黑人xyx| 欧美mv日韩mv国产网站app| 国产精品久久久久久久久久久免费看 | 亚洲精选一二三| 欧美96一区二区免费视频| 成人永久免费视频| 911国产精品| 亚洲欧洲国产日韩| 美女视频一区二区| 一本一道久久a久久精品综合蜜臀| 6080亚洲精品一区二区| 国产精品嫩草影院com| 午夜a成v人精品| 国产成人av电影免费在线观看| 精品视频123区在线观看| 国产日韩欧美精品在线| 亚洲18影院在线观看| 成人免费高清视频在线观看| 欧美一区二区日韩| **欧美大码日韩| 国内精品免费在线观看| 欧美三级资源在线| 中文字幕一区二区三区不卡| 免费在线观看一区| 欧美日韩一区二区三区四区五区| 中文字幕国产一区| 久久aⅴ国产欧美74aaa| 欧美日韩国产天堂| 亚洲乱码中文字幕| 成人午夜视频在线| 久久亚洲综合色| 美腿丝袜亚洲一区| 8x8x8国产精品| 亚洲成a人在线观看| 91网站在线观看视频| 国产视频一区二区三区在线观看| 免费av成人在线| 91麻豆精品国产91久久久使用方法 | 一区二区三区丝袜| 99视频在线精品| 国产欧美精品一区二区色综合朱莉| 美女视频一区二区| 欧美一区二区三区在线观看视频 | 国产精品久久久久影视| 国产精品影视在线观看| 精品国产乱码久久久久久浪潮| 日本不卡免费在线视频| 欧美日韩精品综合在线| 亚洲一二三四在线| 欧美日韩国产首页| 亚洲第一成年网| 制服丝袜中文字幕一区| 午夜av一区二区|