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

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

?? netpacket.java

?? 中間件開發詳細說明:清華大學J2EE教程講義(ppt)-Tsinghua University J2EE tutorial lectures (ppt) [上載源碼成為會員下載此源碼] [成為VIP會
?? JAVA
字號:
/* * ** Network and Service Differentiation Extensions to GridSim 3.0 ** * * Gokul Poduval & Chen-Khong Tham * Computer Communication Networks (CCN) Lab * Dept of Electrical & Computer Engineering * National University of Singapore * August 2004 * * Licence: GPL - http://www.gnu.org/copyleft/gpl.html * * NetPacket.java - Implementation of a Network Packet. * */package gridsim.net;import gridsim.*;import eduni.simjava.*;/** * Structure of a packet used to encapsulate data passing through the network. * * @invariant $none * @since GridSim Toolkit 3.1 * @author Gokul Poduval & Chen-Khong Tham, National University of Singapore */public class NetPacket implements Packet{    private int destID;  // where the packet wants to go    private int srcID;   // sender ID    private long size;   // packet size (for calculating transmission time)    private Object obj;  // the actual object, the type depends on context    // original tag with which the encapsulated object was submitted    private int tag;    // the last entity encountered by the object, used to determine direction    private int last;    private String desc_;   // description of this packet    private int classType;  // level of service for this packet    private int pktNum;     // packet num in one group    private int totalPkts;  // total num of packet that belongs to a group    private int pktID_;     // a unique packet ID issued by an entity    /**     * Constructs a network packet for data that fits into a single network     * packet.     *     * @param data   The data to be encapsulated.     * @param pktID  The ID of this packet     * @param size   The size of the data (in bytes)     * @param tag    The original tag which was used with the data, its     *               reapplied when the data is extracted from the NetPacket.     * @param srcID  The id of the entity where the packet was created.     * @param destID The destination to which the packet has to be sent.     * @pre $none     * @post $none     */    public NetPacket(Object data, int pktID, long size, int tag, int srcID,                     int destID)    {        this.obj = data ;        this.size = size ;        this.tag = tag ;        this.destID = destID;        this.srcID = srcID ;        this.last = srcID ;        this.pktID_ = pktID;        this.classType = 0 ;        this.pktNum = 1;        this.totalPkts = 1;        this.desc_ = null;    }    /**     * This is used to construct a packet that is one in a series. This happens     * when a large piece of data is required to be brokwn down into smaller     * chunks so that they can traverse of links that only support a certain     * MTU. It also allows setting of a classtype so that network schedulers     * maybe provide differntial service to it.     *     * @param data   The data to be encapsulated.     * @param pktID  The ID of this packet     * @param size   The size of the data (in bytes)     * @param tag    The original tag which was used with the data, its     *               reapplied when the data is extracted from the NetPacket.     * @param srcID  The id of the entity where the packet was created.     * @param destID The destination to which the packet has to be sent.     * @param netServiceType the network class type of this packet     * @param pktNum The packet number of this packet in its series. If there     *               are 10 packets, they should be numbered from 1 to 10.     * @param totalPkts The total number of packets that the original data was     *               split into. This is used by the receiver to confirm that     *               all packets have been received.     * @pre $none     * @post $none     */    public NetPacket(Object data, int pktID, long size, int tag, int srcID,                     int destID, int netServiceType, int pktNum, int totalPkts)    {        this.obj = data;        this.size = size;        this.tag = tag;        this.destID = destID;        this.srcID = srcID;        this.last = srcID;        this.classType = netServiceType;        this.pktNum = pktNum;        this.pktID_ = pktID;        this.totalPkts = totalPkts;        this.desc_ = null;    }    /**     * Returns a description of this packet     * @return a description of this packet     * @pre $none     * @post $none     */    public String toString()    {        if (desc_ == null)        {            StringBuffer sb = new StringBuffer("Packet #");            sb.append(pktNum);            sb.append(", out of, ");            sb.append(totalPkts);            sb.append(", with id, ");            sb.append(pktID_);            sb.append(", from, ");            sb.append( GridSim.getEntityName(srcID) );            sb.append(", to, ");            sb.append( GridSim.getEntityName(destID) );            sb.append(", tag, ");            if (tag == GridSimTags.PKT_FORWARD) {                sb.append("GridSimTags.PKT_FORWARD");            }            else if (tag == GridSimTags.JUNK_PKT) {                sb.append("GridSimTags.JUNK_PKT");            }            else {                sb.append(tag);            }            desc_ = sb.toString();        }        return desc_;    }    /**     * Returns the data encapsulated in this NetPacket     * @return data encapsulated in this packet     * @pre $none     * @post $none     */    public Object getData() {        return obj;    }    /**     * Returns the source ID of this packet. The source ID is where the     * NetPacket was originally created.     *     * @return the source id.     * @pre $none     * @post $none     */    public int getSrcID() {        return srcID;    }    /**     * Returns the ID of this packet     * @return packet ID     * @pre $none     * @post $none     */    public int getID() {        return pktID_;    }    /**     * Modifies the data encapsulated in this NetPacket.     * @param data  the packet's data     * @pre $none     * @post $none     */    public void setData(Object data) {        this.obj = data;    }    /**     * Gets the size of this packet     * @return the packet size     * @pre $none     * @post $none     */    public long getSize() {        return size;    }    /**     * Sets the packet size     * @param size  the packet size     * @return <tt>true</tt> if it is successful, <tt>false</tt> otherwise     * @pre size >= 0     * @post $none     */    public boolean setSize(long size)    {        if (size < 0) {            return false;        }        this.size = size;        return true;    }    /**     * Returns the tag associated originally with data that was encapsulated in     * this packet.     *     * @return the tag of the data contained.     * @pre $none     * @post $none     */    public int getTag() {        return tag;    }    /**     * Returns the destination ID of this packet     *     * @return destination ID     * @pre $none     * @post $none     */    public int getDestID() {        return destID;    }    /**     * Sets the destination id of this packet     * @param id   the destination id     * @pre id >= 0     * @post $none     */    public void setDestID(int id) {        this.destID = id;    }    /**     * Sets the last hop that this NetPacket traversed. This is used to     * determine the next hop at routers. Only routers and hosts/GridResources     * set this, links do not modify it.     * @param last  the entity ID from the last hop     * @pre last >= 0     * @post $none     */    public void setLast(int last) {        this.last = last;    }    /**     * Returns the ID of the last hop that this packet traversed. This could be     * the ID of a router, host or GridResource.     *     * @return ID of the last hop     * @pre $none     * @post $none     */    public int getLast() {        return last;    }    /**     * Sets the network class type of this packet, so that it can receive     * differentiated services.     * @param netServiceType  a network service type     * @pre netServiceType >= 0     * @post $none     */    public void setNetServiceType(int netServiceType) {        this.classType = netServiceType;    }    /**     * Returns the class type of this packet. Used by routers etc. to determine     * the level of service that this packet should obtain.     *     * @return the class of this packet     * @pre $none     * @post $none     */    public int getNetServiceType() {        return classType;    }    /**     * Returns the serial number of this packet.     *     * @return packet number     * @pre $none     * @post $none     */    public int getPacketNum() {        return pktNum;    }    /**     * Returns the total number of packets in this stream. A stream of     * packets is sent whenever the data is too big to be sent as one     * packet.     *     * @return total number of packets in this stream.     * @pre $none     * @post $none     */    public int getTotalPackets() {        return totalPkts;    }} // end class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
老汉av免费一区二区三区| 91视频.com| www.视频一区| 欧美一级淫片007| 1024精品合集| 国产成人av电影在线播放| 日本精品一级二级| 国产精品免费丝袜| 日本伊人色综合网| 91成人免费电影| 国产精品乱码一区二区三区软件 | 精品一区二区日韩| 色婷婷综合五月| 国产精品区一区二区三区| 精品在线观看免费| 91麻豆精品国产91久久久使用方法 | 成人免费的视频| 精品国产乱码久久久久久免费| 亚洲v中文字幕| 日本精品一区二区三区高清| 亚洲欧洲成人自拍| 成人激情电影免费在线观看| 久久久精品一品道一区| 日本伊人午夜精品| 欧美一区二区在线不卡| 午夜伊人狠狠久久| 欧美日韩精品二区第二页| 亚洲免费电影在线| 色婷婷国产精品综合在线观看| 中文字幕一区三区| 91视频免费播放| 亚洲免费伊人电影| 91福利国产成人精品照片| 一区二区三区免费| 欧美亚洲高清一区二区三区不卡| 一区二区三区.www| 欧美日韩一区二区三区四区五区| 亚洲香肠在线观看| 欧美精品丝袜久久久中文字幕| 午夜欧美电影在线观看| 欧美情侣在线播放| 美洲天堂一区二卡三卡四卡视频| 欧美电影免费观看完整版| 久久69国产一区二区蜜臀| 久久久91精品国产一区二区三区| 成人一区二区三区视频| 自拍偷拍欧美激情| 欧美精品久久天天躁| 毛片av中文字幕一区二区| 精品黑人一区二区三区久久| 国产九九视频一区二区三区| 中文字幕中文乱码欧美一区二区| 91色在线porny| 亚洲超丰满肉感bbw| 亚洲精品一区二区三区蜜桃下载| 色8久久精品久久久久久蜜| 性欧美大战久久久久久久久| 日韩精品一区二区三区视频播放| 国产成人精品1024| 夜夜嗨av一区二区三区| 日韩一区二区影院| 成人污视频在线观看| 亚洲在线观看免费| 精品久久久久久最新网址| 成人免费电影视频| 日韩精品国产欧美| 国产欧美日韩综合| 欧美日韩1234| 成人动漫一区二区| 日韩avvvv在线播放| 久久精品人人做人人爽97| 色综合久久久久综合99| 紧缚捆绑精品一区二区| 亚洲日本丝袜连裤袜办公室| 日韩欧美成人一区二区| 97se亚洲国产综合自在线观| 久久精品国产亚洲5555| 亚洲精品免费电影| 久久久久99精品国产片| 欧美日韩成人综合在线一区二区| 国产成人精品www牛牛影视| 午夜私人影院久久久久| 中国色在线观看另类| 欧美一级精品大片| 在线观看免费视频综合| 国产成人精品免费一区二区| 蜜桃传媒麻豆第一区在线观看| 亚洲精品国产无套在线观| 久久久美女毛片| 日韩一区二区电影网| 色欧美片视频在线观看在线视频| 国产成人午夜精品影院观看视频| 日韩综合在线视频| 一区2区3区在线看| 亚洲欧美综合网| 国产亚洲短视频| www成人在线观看| 日韩一卡二卡三卡国产欧美| 欧美网站大全在线观看| 色婷婷综合久久久| 91麻豆6部合集magnet| 成人午夜在线播放| 国产伦精一区二区三区| 精品一区二区在线看| 秋霞午夜av一区二区三区| 亚洲高清免费一级二级三级| 一区二区三区精品在线观看| 亚洲欧洲日韩av| 亚洲婷婷综合色高清在线| 国产精品久久久久久久久久免费看 | 在线观看91精品国产入口| av电影在线观看一区| 91亚洲精品一区二区乱码| 成人一级视频在线观看| 不卡视频一二三| av成人动漫在线观看| av在线不卡电影| 99re视频精品| 在线视频国产一区| 欧美自拍偷拍午夜视频| 国产精品乱人伦| 亚洲视频在线观看三级| 亚洲视频香蕉人妖| 一区二区三区欧美| 亚洲国产va精品久久久不卡综合| 亚洲乱码一区二区三区在线观看| 一区二区三区在线免费观看| 亚洲va欧美va国产va天堂影院| 亚洲va欧美va天堂v国产综合| 丝袜诱惑制服诱惑色一区在线观看 | 欧美精品一区二区三区蜜臀| 精品国产一区二区三区久久影院 | 人人狠狠综合久久亚洲| 免费观看在线色综合| 国产精品综合二区| 99视频在线精品| 欧美美女喷水视频| 精品久久久久久久久久久久久久久久久 | 日韩精品成人一区二区在线| 久久精品久久综合| 不卡视频在线观看| 欧美区在线观看| 久久久久久久久蜜桃| 亚洲天堂av老司机| 日韩成人午夜精品| 国产成人av电影在线观看| 欧美主播一区二区三区美女| 欧美一级久久久| 国产精品久久久久久久久久免费看 | 欧美午夜片在线观看| 日韩美女一区二区三区| 亚洲丝袜另类动漫二区| 日韩专区中文字幕一区二区| 国产精品中文有码| 欧美制服丝袜第一页| 久久免费偷拍视频| 亚洲韩国精品一区| 国产成人精品影视| 91精品久久久久久久91蜜桃 | 日本视频在线一区| 93久久精品日日躁夜夜躁欧美| 欧美高清视频不卡网| 中文在线免费一区三区高中清不卡 | 成人亚洲一区二区一| 91精品国产综合久久福利| 中文字幕人成不卡一区| 久久成人免费网| 欧美午夜一区二区三区免费大片| 国产欧美日韩视频在线观看| 日韩激情视频网站| 在线观看免费亚洲| 中文字幕永久在线不卡| 国产在线乱码一区二区三区| 欧美乱妇20p| 怡红院av一区二区三区| 国产成人精品在线看| 精品久久一二三区| 日本午夜一区二区| 国产精品人人做人人爽人人添| 久久国产麻豆精品| 欧美日韩高清一区二区三区| 国产精品久久久久久久久动漫| 狠狠网亚洲精品| 欧美一级淫片007| 日韩国产欧美在线观看| 欧美主播一区二区三区| 亚洲欧美精品午睡沙发| 成人av电影免费在线播放| 欧美激情综合五月色丁香| 国产在线播放一区| 精品国产第一区二区三区观看体验 | 亚洲高清免费观看| 色94色欧美sute亚洲线路二| 亚洲色图一区二区| 99精品视频在线免费观看| 一区精品在线播放| 91丨porny丨最新| 亚洲免费观看高清完整版在线观看 | 日韩精品在线看片z| 久久精品av麻豆的观看方式|