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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? regionalgis.java

?? 中間件開發(fā)詳細(xì)說明:清華大學(xué)J2EE教程講義(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上載源碼成為會(huì)員下載此源碼] [成為VIP會(huì)
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/* * 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: RegionalGIS.java,v 1.8 2006/01/17 01:30:24 anthony Exp $ */package gridsim.index;import java.util.*;import eduni.simjava.*;import gridsim.*;import gridsim.net.Link;/** * RegionalGIS is a simple regional GridInformationService (GIS) entity that * performs basic functionalities, such as storing a list of local resources, * and asking other regional GIS entities for resources. * <p> * If you want to implement other complex functionalities, you need to extend * this class and to override {@link #processOtherEvent(Sim_event)} * and/or {@link #registerOtherEntity()} method. * * @author       Anthony Sulistio * @since        GridSim Toolkit 3.2 * @invariant $none */public class RegionalGIS extends AbstractGIS{    /** This entity ID in <tt>Integer</tt> object. */    protected Integer myID_;    private ArrayList resList_;         // all resources within this region    private ArrayList arList_;          // AR resources only within this region    private ArrayList globalResList_;   // all resources outside this region    private ArrayList globalResARList_; // AR resources only outside this region    private LinkedList regionalList_;   // list of regional GIS, incl. myself    private ArrayList userList_;    // list of users querying for global res    private ArrayList userARList_;  // list of users querying for global AR res    private int numRes_;  // counting for num of GIS entities for res request    private int numAR_;   // counting for num of GIS entities for res AR request    /**     * Creates a new regional GIS entity     * @param name  this regional GIS name     * @param link  a network link to this entity     * @throws Exception This happens when creating this entity before     *                   initializing GridSim package or this entity name is     *                   <tt>null</tt> or empty     * @pre name != null     * @pre link != null     * @post $none     */    public RegionalGIS(String name, Link link) throws Exception    {        super(name, link);        init();    }    /**     * Initialises all attributes     * @pre $none     * @post $none     */    private void init()    {        myID_ = new Integer( super.get_id() );        resList_ = new ArrayList();        arList_ = new ArrayList();        regionalList_ = null;        globalResList_ = null;        globalResARList_ = null;        userList_ = null;        userARList_ = null;        numAR_ = -1;        numRes_ = -1;    }    /**     * Stores the incoming registration ID into the given list. <br>     * NOTE: <tt>ev.get_data()</tt> should contain an <tt>Integer</tt> object.     *     * @param ev      a new Sim_event object or incoming registration request     * @param list    a list storing the registration IDs     * @return <tt>true</tt> if successful, <tt>false</tt> otherwise     * @pre ev != null     * @pre list != null     * @post $none     */    protected boolean storeRegistrationID(Sim_event ev, List list)    {        boolean result = false;        if (ev == null || list == null) {            return result;        }        Object obj = ev.get_data();        if (obj instanceof Integer)        {            Integer id = (Integer) obj;            list.add(id);            result = true;        }        return result;    }    /**     * Process a registration request from a resource entity     * supporting Advanced Reservation to this regional     * GIS entity. <br>     * NOTE: <tt>ev.get_data()</tt> should contain an <tt>Integer</tt> object     * representing the resource ID.     *     * @param ev  a Sim_event object (or a registration request)     * @pre ev != null     * @post $none     */    protected void processRegisterResourceAR(Sim_event ev)    {        boolean result1 = storeRegistrationID(ev, arList_);        boolean result2 = storeRegistrationID(ev, resList_);        if (result1 == false || result2 == false)        {            System.out.println(super.get_name() +                ".processRegisterResourceAR(): Warning - can't register " +                "a resource ID.");        }    }    /**     * Process a registration request from a resource entity to this regional     * GIS entity. <br>     * NOTE: <tt>ev.get_data()</tt> should contain an <tt>Integer</tt> object     * representing the resource ID.     *     * @param ev  a Sim_event object (or a registration request)     * @pre ev != null     * @post $none     */    protected void processRegisterResource(Sim_event ev)    {        boolean result = storeRegistrationID(ev, resList_);        if (result == false)        {            System.out.println(super.get_name() +                ".processRegisterResource(): Warning - can't register " +                "a resource ID.");        }    }    /**     * Process an incoming request that uses a user-defined tag. <br>     * NOTE: This method can be overridden by its subclasses, provided     *       that they call this method first. This is required, just in case     *       this method is not empty.     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null     * @post $none     */    protected void processOtherEvent(Sim_event ev) {        // empty    }    /**     * Process an incoming request from other GIS entities about getting     * a list of resource IDs, that are registered to this regional GIS entity.     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null     * @post $none     */    protected void processGISResourceList(Sim_event ev)    {        if (ev == null || ev.get_data() == null) {            return;        }        Integer id = (Integer) ev.get_data();        int tag = AbstractGIS.GIS_INQUIRY_RESOURCE_RESULT;        /*****   // Debug info        System.out.println(super.get_name() + ".processGISResourceList():" +            " request from " + GridSim.getEntityName(id.intValue()) +            " for list = " + resList_ + " tag = " + ev.get_tag());        *****/        boolean result = sendListToSender(id.intValue(), tag, resList_);        if (result == false)        {            System.out.println(super.get_name() +                ".processGISResourceList(): Warning - unable to send a list " +                "of resource IDs to sender.");        }    }    /**     * Process an incoming request from other GIS entities about getting     * a list of resource IDs supporting Advanced Reservation,     * that are registered to this regional GIS entity.     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null     * @post $none     */    protected void processGISResourceARList(Sim_event ev)    {        if (ev == null || ev.get_data() == null) {            return;        }        Integer id = (Integer) ev.get_data();        int tag = AbstractGIS.GIS_INQUIRY_RESOURCE_AR_RESULT;        /*****   // Debug info        System.out.println(super.get_name() + ".processGISResourceARList():" +            " request from " + GridSim.getEntityName(id.intValue()) +            " for list = " + resList_ + " tag = " + ev.get_tag());        *****/        boolean result = sendListToSender(id.intValue(), tag, arList_);        if (result == false)        {            System.out.println(super.get_name() +                ".processGISResourceARList(): Warning - unable to send a " +                "list of resource IDs to sender.");        }    }    /**     * Process an incoming delivery from other GIS entities about their     * resource list supporting Advanced Reservation. <br>     * NOTE: ev.get_data() should contain <tt>List</tt> containing resource IDs     * (in <tt>Integer</tt> object).     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null     * @post $none     */    protected void processGISResourceARResult(Sim_event ev)    {        try        {            List list = (List) ev.get_data();    // get the data            globalResARList_.addAll(list);       // add the result into a list            numAR_--;       // decrement the counter for GIS entity            /*****   // Debug info            System.out.println();            System.out.println(super.get_name() + " ... AR result tag = " +                ev.get_tag() + " counter = " + numAR_);            System.out.println(super.get_name() + " ... AR list = " +                globalResARList_);            *****/            // send back the result to user(s)            if (numAR_ == 0)            {                numAR_ = -1;                sendBackResult(globalResARList_,                    AbstractGIS.INQUIRY_GLOBAL_RESOURCE_AR_LIST, userARList_);            }        }        catch (Exception e)        {            System.out.println(super.get_name() +                ": Error - expected to send List object in ev.get_data()");        }    }    /**     * Process an incoming delivery from other GIS entities about their     * resource list. <br>     * NOTE: ev.get_data() should contain <tt>List</tt> containing resource IDs     * (in <tt>Integer</tt> object).     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null     * @post $none     */    protected void processGISResourceResult(Sim_event ev)    {        try        {            List list = (List) ev.get_data();            globalResList_.addAll(list);            numRes_--;            /*****   // Debug info            System.out.println();            System.out.println(super.get_name() + " ... EMPTY tag = " +                ev.get_tag() + " counter = " + numRes_);            System.out.println(super.get_name()+" ... list = "+globalResList_);            *****/            // send back the result to user(s)            if (numRes_ == 0)            {                numRes_ = -1;                sendBackResult(globalResList_,                    AbstractGIS.INQUIRY_GLOBAL_RESOURCE_LIST, userList_);            }        }        catch (Exception e)        {            System.out.println(super.get_name() +                ": Error - expected to send List object in ev.get_data()");        }    }    /**     * Sends the result back to sender     * @param list  a List object containing resource IDs     * @param tag   a return tag name     * @param userList  a list of user IDs     *     * @pre userList != null     * @post $none     */    private void sendBackResult(List list, int tag, ArrayList userList)    {        if (userList == null) {            return;        }        // send back the result to each user in the list        Iterator it = userList.iterator();        while ( it.hasNext() )        {            Integer id = (Integer) it.next();            sendListToSender(id.intValue(), tag, list);        }        userList.clear();   // then clear up the list    }    /**     * Process an incoming request about getting a list of regional GIS IDs     * (including this entity ID), that are registered to the     * {@link gridsim.GridInformationService} or system GIS.     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null     * @post $none     */    protected void processInquiryRegionalGIS(Sim_event ev)    {        // get regional GIS list from system GIS        LinkedList regionalList = requestFromSystemGIS();        // then send the list to sender        boolean result = sendListToSender(ev, regionalList);        if (result == false)        {            System.out.println(super.get_name() +                ".processInquiryRegionalGIS(): Warning - unable to send a " +                "list of regional GIS IDs to sender.");        }    }    /**     * Process an incoming request about getting a list of resource IDs     * supporting Advanced Reservation that are registered in other regional     * GIS entities.     *     * @param ev  a Sim_event object (or an incoming event or request)     * @pre ev != null

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二| 亚洲小说欧美激情另类| zzijzzij亚洲日本少妇熟睡| 亚洲精品欧美激情| 精品免费一区二区三区| 色成年激情久久综合| 狠狠色狠狠色综合日日91app| 国产精品麻豆久久久| 日韩女优毛片在线| 在线看国产一区| 成人综合激情网| 精品一区二区三区影院在线午夜 | 91亚洲精品久久久蜜桃网站| 欧美aaa在线| 亚洲综合久久久| 国产精品日产欧美久久久久| 26uuu国产日韩综合| 欧美高清www午色夜在线视频| 91在线视频在线| 国产盗摄女厕一区二区三区| 免费成人结看片| 五月婷婷激情综合网| 一区二区三区日本| 国产精品国产自产拍在线| 久久综合狠狠综合久久综合88 | 99re6这里只有精品视频在线观看| 精品亚洲aⅴ乱码一区二区三区| 亚洲成人黄色影院| 亚洲第一精品在线| 亚洲卡通动漫在线| 亚洲美女偷拍久久| 亚洲视频免费在线| 国产精品第13页| 国产精品九色蝌蚪自拍| 日本一区二区免费在线| 亚洲国产岛国毛片在线| 久久久久久久电影| 2021久久国产精品不只是精品| 91精品国产乱码久久蜜臀| 欧美丰满一区二区免费视频 | 99re这里只有精品视频首页| 国产69精品久久99不卡| 成人动漫精品一区二区| 国产欧美一区二区在线| 久久奇米777| 久久精品一区二区三区四区| 精品国产免费久久| 久久天天做天天爱综合色| 国产午夜精品一区二区三区嫩草| 久久九九影视网| 国产精品成人免费在线| 日韩理论片在线| 一区二区三区在线视频播放 | 亚洲成av人综合在线观看| 亚洲一区日韩精品中文字幕| 亚洲电影在线播放| 日本不卡在线视频| 精品中文字幕一区二区小辣椒| 韩国午夜理伦三级不卡影院| 国产成人精品aa毛片| thepron国产精品| 在线亚洲免费视频| 欧美丰满高潮xxxx喷水动漫| 精品国产制服丝袜高跟| 亚洲国产激情av| 亚洲一区二区三区四区中文字幕| 亚洲成人免费电影| 精品影院一区二区久久久| 成人免费视频一区二区| 在线精品观看国产| 精品国产网站在线观看| 欧美亚洲综合网| 日韩色视频在线观看| 国产精品情趣视频| 亚洲国产一区视频| 国产麻豆精品视频| 91免费精品国自产拍在线不卡| 欧美日韩国产综合草草| 久久久蜜桃精品| 亚洲午夜在线电影| 美女网站色91| 色综合视频一区二区三区高清| 欧美日韩在线三级| 久久精品亚洲乱码伦伦中文| 亚洲影视在线播放| 国产精品亚洲人在线观看| 91国产精品成人| 欧美一级视频精品观看| 国产精品卡一卡二| 男女视频一区二区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美日韩一卡二卡| 欧美激情一区二区在线| 偷拍亚洲欧洲综合| 不卡视频免费播放| 日韩精品一区二区三区swag| 亚洲日本乱码在线观看| 久色婷婷小香蕉久久| 日本韩国一区二区三区视频| 国产亚洲一区二区在线观看| 亚洲黄色免费网站| 成人在线综合网站| 亚洲精品一区二区三区精华液 | 亚洲人午夜精品天堂一二香蕉| 久久不见久久见免费视频7| 91黄色在线观看| 欧美激情一区在线| 国产精品一级黄| 在线播放一区二区三区| 亚洲成人在线网站| 国产ts人妖一区二区| 日韩美女一区二区三区四区| 亚洲一区二区三区四区在线 | 爽爽淫人综合网网站| 972aa.com艺术欧美| 久久久久国产成人精品亚洲午夜| 日韩综合小视频| 欧美午夜影院一区| 亚洲免费观看高清完整| 成人激情免费电影网址| 精品对白一区国产伦| 日本不卡123| 91精品国产乱码| 日韩高清中文字幕一区| 欧美日韩视频专区在线播放| 亚洲日穴在线视频| 色噜噜久久综合| 亚洲精品免费看| 在线观看亚洲专区| 一区二区三区在线免费视频| 9色porny自拍视频一区二区| 亚洲国产岛国毛片在线| 国产成人精品1024| 国产视频在线观看一区二区三区| 激情久久五月天| 2020国产精品自拍| 国产一区二区三区| 国产欧美视频在线观看| 国产激情一区二区三区| 欧美国产成人在线| 不卡电影免费在线播放一区| 国产精品久久久久久久久免费丝袜 | 亚洲伦理在线精品| 91理论电影在线观看| 亚洲精品中文字幕在线观看| 一本色道亚洲精品aⅴ| 一区二区三区在线免费观看| 欧美日韩免费高清一区色橹橹 | 日韩黄色在线观看| 欧美一卡2卡3卡4卡| 久久av中文字幕片| 国产午夜三级一区二区三| 菠萝蜜视频在线观看一区| 综合av第一页| 欧美色大人视频| 日韩av成人高清| 久久久久久久久久看片| www.久久久久久久久| 亚洲精品日日夜夜| 欧美一区二区精品| 国产mv日韩mv欧美| 亚洲综合视频在线观看| 欧美一区二区三区视频在线观看 | 国产精品免费av| 91电影在线观看| 免费在线观看精品| 中国av一区二区三区| 欧美在线观看一区| 久久精品噜噜噜成人88aⅴ| 久久久三级国产网站| 91理论电影在线观看| 蜜桃久久久久久| 中文字幕一区二区三区在线不卡 | 欧美三级中文字幕在线观看| 美女国产一区二区三区| 国产清纯美女被跳蛋高潮一区二区久久w| 国产成人综合在线| 亚洲一区二区在线观看视频| 欧美成人aa大片| 99久久综合99久久综合网站| 日日噜噜夜夜狠狠视频欧美人| 国产日韩视频一区二区三区| 在线一区二区三区| 国产一区高清在线| 亚洲高清视频在线| 国产亚洲一区二区在线观看| 日韩精品在线一区二区| 亚洲一区二区三区四区在线 | 日韩一级二级三级| jizz一区二区| 麻豆视频观看网址久久| 亚洲同性同志一二三专区| 欧美成人精品福利| 在线观看日韩毛片| 国产成人av电影免费在线观看| 日韩精品国产精品| 亚洲欧美二区三区| 久久久av毛片精品| 欧美v日韩v国产v| 欧洲av一区二区嗯嗯嗯啊|