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

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

?? netex03.java

?? 一個非常著名的網(wǎng)格模擬器,能夠運行網(wǎng)格調(diào)度算法!
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
        }
    }

    /**
     * Creates one Grid resource. A Grid resource contains one or more
     * Machines. Similarly, a Machine contains one or more PEs (Processing
     * Elements or CPUs).
     * <p>
     * In this simple example, we are simulating one Grid resource with three
     * Machines that contains one or more PEs.
     * @param name          a Grid Resource name
     * @param baud_rate     the bandwidth of this entity
     * @param delay         the propagation delay
     * @param MTU           Maximum Transmission Unit
     * @return a GridResource object
     */
    private static GridResource createGridResource(String name,
                double baud_rate, double delay, int MTU)
    {
        System.out.println();
        System.out.println("Starting to create one Grid resource with " +
                "3 Machines");

        // Here are the steps needed to create a Grid resource:
        // 1. We need to create an object of MachineList to store one or more
        //    Machines
        MachineList mList = new MachineList();
        //System.out.println("Creates a Machine list");


        // 2. A Machine contains one or more PEs or CPUs. Therefore, should
        //    create an object of PEList to store these PEs before creating
        //    a Machine.
        PEList peList1 = new PEList();
        //System.out.println("Creates a PE list for the 1st Machine");


        // 3. Create PEs and add these into an object of PEList.
        //    In this example, we are using a resource from
        //    hpc420.hpcc.jp, AIST, Tokyo, Japan
        //    Note: these data are taken the from GridSim paper, page 25.
        //          In this example, all PEs has the same MIPS (Millions
        //          Instruction Per Second) Rating for a Machine.
        peList1.add( new PE(0, 377) );  // need to store PE id and MIPS Rating
        peList1.add( new PE(1, 377) );
        peList1.add( new PE(2, 377) );
        peList1.add( new PE(3, 377) );
        //System.out.println("Creates 4 PEs with same MIPS Rating and put them"+
        //        " into the PE list");


        // 4. Create one Machine with its id and list of PEs or CPUs
        mList.add( new Machine(0, peList1) );   // First Machine
        //System.out.println("Creates the 1st Machine that has 4 PEs and " +
        //        "stores it into the Machine list");
        //System.out.println();

        // 5. Repeat the process from 2 if we want to create more Machines
        //    In this example, the AIST in Japan has 3 Machines with same
        //    MIPS Rating but different PEs.
        // NOTE: if you only want to create one Machine for one Grid resource,
        //       then you could skip this step.
        PEList peList2 = new PEList();
        //System.out.println("Creates a PE list for the 2nd Machine");

        peList2.add( new PE(0, 377) );
        peList2.add( new PE(1, 377) );
        peList2.add( new PE(2, 377) );
        peList2.add( new PE(3, 377) );
        //System.out.println("Creates 4 PEs with same MIPS Rating and put them"+
        //        " into the PE list");

        mList.add( new Machine(1, peList2) );   // Second Machine
        //System.out.println("Creates the 2nd Machine that has 4 PEs and " +
        //        "stores it into the Machine list");
        //System.out.println();

        PEList peList3 = new PEList();
        //System.out.println("Creates a PE list for the 3rd Machine");

        peList3.add( new PE(0, 377) );
        peList3.add( new PE(1, 377) );
        //System.out.println("Creates 2 PEs with same MIPS Rating and put them"+
        //        " into the PE list");

        mList.add( new Machine(2, peList3) );   // Third Machine
        //System.out.println("Creates the 3rd Machine that has 2 PEs and " +
        //        "stores it into the Machine list");
        //System.out.println();

        // 6. Create a ResourceCharacteristics object that stores the
        //    properties of a Grid resource: architecture, OS, list of
        //    Machines, allocation policy: time- or space-shared, time zone
        //    and its price (G$/PE time unit).
        String arch = "Sun Ultra";      // system architecture
        String os = "Solaris";          // operating system
        double time_zone = 9.0;         // time zone this resource located
        double cost = 3.0;              // the cost of using this resource

        ResourceCharacteristics resConfig = new ResourceCharacteristics(
                arch, os, mList, ResourceCharacteristics.TIME_SHARED,
                time_zone, cost);

        //System.out.println("Creates the properties of a Grid resource and " +
        //        "stores the Machine list");

        // 7. Finally, we need to create a GridResource object.
        long seed = 11L*13*17*19*23+1;
        double peakLoad = 0.0;        // the resource load during peak hour
        double offPeakLoad = 0.0;     // the resource load during off-peak hr
        double holidayLoad = 0.0;     // the resource load during holiday

        // incorporates weekends so the grid resource is on 7 days a week
        LinkedList Weekends = new LinkedList();
        Weekends.add(new Integer(Calendar.SATURDAY));
        Weekends.add(new Integer(Calendar.SUNDAY));

        // incorporates holidays. However, no holidays are set in this example
        LinkedList Holidays = new LinkedList();
        GridResource gridRes = null;
        try
        {
            // creates a GridResource with a link
            gridRes = new GridResource(name,
                new SimpleLink(name + "_link", baud_rate, delay, MTU),
                seed, resConfig, peakLoad, offPeakLoad, holidayLoad,
                Weekends, Holidays);
        }
        catch (Exception e) {
            e.printStackTrace();
        }

        System.out.println("Finally, creates one Grid resource (name: " + name +
                " - id: " + gridRes.get_id() + ")");
        System.out.println();

        return gridRes;
    }

    /**
     * Prints the Gridlet objects
     */
    private static void printGridletList(GridletList list, String name,
                                         boolean detail)
    {
        int size = list.size();
        Gridlet gridlet = null;

        String indent = "    ";
        System.out.println();
        System.out.println("============= OUTPUT for " + name + " ==========");
        System.out.println("Gridlet ID" + indent + "STATUS" + indent +
                "Resource ID" + indent + "Cost");

        // a loop to print the overall result
        int i = 0;
        for (i = 0; i < size; i++)
        {
            gridlet = (Gridlet) list.get(i);
            System.out.print(indent + gridlet.getGridletID() + indent
                    + indent);

            System.out.print( gridlet.getGridletStatusString() );

            System.out.println( indent + indent + gridlet.getResourceID() +
                    indent + indent + gridlet.getProcessingCost() );
        }

        if (detail == true)
        {
            // a loop to print each Gridlet's history
            for (i = 0; i < size; i++)
            {
                gridlet = (Gridlet) list.get(i);
                System.out.println( gridlet.getGridletHistory() );

                System.out.print("Gridlet #" + gridlet.getGridletID() );
                System.out.println(", length = " + gridlet.getGridletLength()
                        + ", finished so far = " +
                        gridlet.getGridletFinishedSoFar() );
                System.out.println("======================================\n");
            }
        }
    }

} // end class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品视频在线观看免费 | 日韩欧美一级在线播放| 欧美一区二区不卡视频| 日韩一级完整毛片| 国产精品午夜电影| 亚洲国产精品久久艾草纯爱| 久久国产尿小便嘘嘘| 成人h动漫精品一区二| 在线观看亚洲a| 欧美大片在线观看一区二区| 一区在线播放视频| 日本视频免费一区| 成人av免费在线观看| 欧美精品自拍偷拍动漫精品| 欧美国产一区视频在线观看| 亚洲图片一区二区| 国产成人精品免费在线| 欧美日韩视频专区在线播放| 精品久久久久久最新网址| 亚洲女厕所小便bbb| 激情另类小说区图片区视频区| 成人黄色av电影| 日韩一区二区在线看| 亚洲天堂av老司机| 美女网站色91| 色就色 综合激情| 久久综合九色欧美综合狠狠| 亚洲福利一二三区| 懂色av中文一区二区三区 | 日本vs亚洲vs韩国一区三区二区 | 欧美激情在线一区二区三区| 亚洲高清久久久| bt欧美亚洲午夜电影天堂| 欧美一区二区三区视频在线| 最新国产成人在线观看| 精品一区二区三区在线播放视频| 在线一区二区三区| 国产清纯在线一区二区www| 午夜精品视频在线观看| 97se亚洲国产综合自在线不卡| 精品精品欲导航| 亚洲成人免费av| av男人天堂一区| 国产欧美一区二区三区鸳鸯浴| 午夜影院久久久| 色偷偷88欧美精品久久久| 国产偷国产偷亚洲高清人白洁 | 亚洲精品一区二区三区蜜桃下载| 一区二区三区高清| 成人av小说网| 国产日韩高清在线| 久久99精品国产91久久来源| 欧美一区二区女人| 亚洲成人tv网| 欧美性感一区二区三区| 亚洲欧美日韩国产中文在线| 成人国产精品免费网站| 国产婷婷一区二区| 国产精品一区免费视频| 精品三级av在线| 免费欧美在线视频| 欧美精品丝袜久久久中文字幕| 一区二区三区国产豹纹内裤在线| 成人国产精品免费网站| 国产精品少妇自拍| 成人在线视频一区| 欧美国产日韩精品免费观看| 国产精品中文字幕日韩精品| 欧美精品一区二区三区久久久| 蜜臀av性久久久久蜜臀aⅴ流畅 | 日韩国产欧美在线播放| 欧美探花视频资源| 亚洲图片欧美视频| 欧美性猛交一区二区三区精品| 亚洲精品成a人| 日本韩国欧美一区| 亚洲激情欧美激情| 欧美丝袜第三区| 亚洲成人av免费| 91精品国产欧美一区二区| 免费日韩伦理电影| 久久蜜桃av一区二区天堂| 国产乱淫av一区二区三区| 国产亚洲精品7777| 成人av在线网站| 一区二区三区蜜桃| 欧美日本韩国一区二区三区视频| 亚洲成人综合在线| 欧美一级久久久久久久大片| 免费成人在线视频观看| 久久久亚洲欧洲日产国码αv| 久久国产精品72免费观看| 久久这里只有精品视频网| 成人一区二区三区视频在线观看| 国产精品美女视频| 欧美综合在线视频| 日韩和欧美的一区| 精品国产不卡一区二区三区| 国产成人自拍网| 一区在线观看免费| 欧美精品v日韩精品v韩国精品v| 蜜桃av一区二区三区电影| 久久久久亚洲蜜桃| 99久久er热在这里只有精品15| 亚洲第一电影网| 欧美mv日韩mv| 99精品视频免费在线观看| 亚洲成人在线免费| 26uuu欧美| 色综合天天综合网天天看片| 日韩在线a电影| 久久精品视频一区二区三区| 91老司机福利 在线| 日本成人在线网站| 亚洲国产电影在线观看| 欧美日韩国产天堂| 国产精品99精品久久免费| 亚洲精品国产精华液| 日韩欧美国产高清| 91在线看国产| 久久国产人妖系列| 亚洲精选免费视频| 精品1区2区在线观看| 欧美在线视频不卡| 国产精品1区2区| 午夜精品久久久久影视| 国产欧美中文在线| 欧美日韩亚洲综合一区二区三区 | 国产精品国产自产拍高清av| 欧美日韩一卡二卡三卡| 懂色av中文一区二区三区| 男男gaygay亚洲| 一区二区三区精品| 国产欧美日韩精品一区| 欧美理论片在线| 91小视频在线| 国产一区二区在线观看视频| 亚洲一二三区在线观看| 日本一区二区动态图| 欧美成人三级电影在线| 欧洲在线/亚洲| 波波电影院一区二区三区| 另类小说欧美激情| 亚洲综合激情另类小说区| 欧美国产综合一区二区| 欧美一级爆毛片| 欧美日韩黄色影视| 91在线看国产| 成人免费视频国产在线观看| 精品在线播放免费| 日韩电影免费在线看| 一区二区三区欧美久久| 国产精品成人一区二区艾草 | 国产中文字幕一区| 亚洲国产wwwccc36天堂| 亚洲欧美日韩国产综合在线| 国产日韩精品一区| 久久影院午夜片一区| 日韩视频在线你懂得| 欧美日韩亚洲国产综合| 色网站国产精品| 99久久精品免费看国产| 成人小视频在线观看| 国产精品18久久久久| 激情综合五月天| 日本伊人午夜精品| 丝袜a∨在线一区二区三区不卡| 亚洲蜜臀av乱码久久精品 | 99麻豆久久久国产精品免费| 国产一区二区在线免费观看| 久久精品72免费观看| 麻豆91免费观看| 蜜臀av性久久久久蜜臀aⅴ流畅| 婷婷成人综合网| 午夜精品在线视频一区| 亚洲a一区二区| 三级欧美韩日大片在线看| 亚洲国产成人va在线观看天堂| 亚洲综合在线视频| 一区二区在线看| 亚洲综合另类小说| 亚洲福利视频一区二区| 亚洲成人资源在线| 日韩va欧美va亚洲va久久| 全国精品久久少妇| 裸体一区二区三区| 麻豆精品新av中文字幕| 免费不卡在线观看| 国内偷窥港台综合视频在线播放| 国产在线不卡一卡二卡三卡四卡| 韩国欧美一区二区| 国产91在线看| 99久久99久久精品国产片果冻| 北岛玲一区二区三区四区| 色香色香欲天天天影视综合网| 在线观看视频一区二区欧美日韩| 欧美图区在线视频| 欧美一级片在线看| 精品国产乱码久久久久久牛牛| 久久精品亚洲乱码伦伦中文|