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

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

?? vertex.java

?? JAVA版的螞蟻算法(Ant Colony Optimization Algorithms)
?? JAVA
字號:
package dk.itu.nulx30.graph;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * Class <code>Vertex</code> is the representation of a vertex
 * in the <code>Graph</code>. The class contains information
 * about the location of the <code>Vertex</code> and a
 * <code>List</code> of all outgoing <code>Edges</code>.
 *
 * @author  Mikkel Bundgaard
 * @author  Troels C. Damgaard
 * @author  Federico Decara
 * @author  Jacob W. Winther
 */
public class Vertex implements Comparable, Serializable, Cloneable {
  /** A <code>List</code> containing the outgoing Edges of the object */
  private List adj;
  /** The index of the object */
  private int myIndex;
  /** The position of the object */
  private double xPos, yPos;

  /**
   * Class constructor specifying the index of the object.
   *
   * @param index The index of the vertex.
   */
  public Vertex ( int index ) {
    adj = new ArrayList();
    myIndex = index;
  }

  /**
   * Class constructor specifying the index and the position 
   * of the object.
   *
   * @param index The index of the object.
   * @param x     The horizontal position of the object.
   * @param y     The vertical position of the object.
   */
  public Vertex ( int index, int x, int y ) {
    this( index );
    xPos = x;
    yPos = y;
  }

  /**
   * Returns a <code>List</code> containing all the 
   * outgoing <code>Edges</code> from the object.
   *
   * @return  a <code>List</code> containing all the 
   * outgoing <code>Edges</code>.
   */
  public List getEdges() {
    return adj;
  }
  
  /**
   * Provides a string representation of the index of the object.
   *
   * @return a string representation of this vertex.
   */
  public String toString() {
    return Integer.toString( myIndex );  
  }
  
  /**
   * This method is called on every ant arrival to this vertex.
   * NOTE : Currently this method does nothing!.
   */    
  public void antArrival(){ }
  
  /**
   * Compares this vertex to another <code>Object</code>.
   * If the <code>Object</code> is not a <code>Vertex</code>, this function 
   * throws a ClassCastException otherwise.
   *
   * @param  other  The <code>Object</code> to compare to.
   *
   * @return  the value 0 if the argument object is equal to this object;
   * -1 if this object has an index smaller than the index of the argument;
   * 1 if this object has an index larger than the index of the argument.
   *
   */
  public int compareTo( Object other ) {
    Vertex otherV = ( Vertex ) other;
    return ( myIndex < otherV.myIndex ) ? -1 :
           ( myIndex == otherV.myIndex ? 0 : 1 );
  }
  
  /**
   * Compares this <code>Vertex</code> to the specified object. 
   * The result is true if and only if the argument is not null,
   * is a <code>Vertex</code> and has the same index as this 
   * <code>Vertex</code>.
   *
   * @param  other  The <code>Object</code> to compare to.
   *
   * @return a boolean which is true if and only if this object is equal 
   * to the argument, otherwise false.
   */
  public boolean equals( Object other ) {
    return myIndex == ( ( Vertex ) other ).myIndex;
  }

  /**
   * Returns the index of the <code>Vertex</code>.
   *
   * @return the index of the <code>Vertex</code>.
   */
  public int getIndex() {
    return myIndex;
  }

  /**
   * Returns the horizontal position of the object.
   *
   * @return horizontal position of the object.
   */
  public double getXPos() {
    return xPos;
  }

  /**
   * Returns the vertical position of the object.
   *
   * @return vertical position of the object.
   */
  public double getYPos() {
    return yPos;
  }

  /**
   * Sets the horizontal position of the object to the new value.
   *
   * @param newXpos the new horizontal position of the object.
   */
  public void setXPos( double newXpos  ) {
    xPos = newXpos;
  }

  /**
   * Sets the vertical position of the object to the new value.
   *
   * @param newYpos the new vertical position of the object.
   */
  public void setYPos( double newYpos  ) {
    yPos = newYpos;
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级黄色大片| 91免费看片在线观看| 一区二区三区中文字幕精品精品| 日韩精品一区二区三区中文不卡| 欧美日韩久久久| 欧美三级三级三级| 在线视频综合导航| 欧美日韩一区二区三区在线| 91福利在线播放| 欧美午夜精品理论片a级按摩| 色哟哟欧美精品| 欧美日韩欧美一区二区| 欧美一区二区三区免费视频 | 日韩激情视频在线观看| 亚洲一二三专区| 日日嗨av一区二区三区四区| 蜜乳av一区二区| 国产精品一区二区在线观看网站| 欧美极品少妇xxxxⅹ高跟鞋| 精品日韩欧美在线| 国产日韩欧美精品在线| 国产精品久久午夜夜伦鲁鲁| 一区二区三区在线免费观看| 五月天视频一区| 国产福利91精品一区| 色综合婷婷久久| 日韩一区二区在线看片| 国产欧美一区二区在线观看| 亚洲啪啪综合av一区二区三区| 午夜成人免费电影| 国产精品 欧美精品| 欧洲av一区二区嗯嗯嗯啊| 日韩午夜精品电影| 国产精品久久久久久妇女6080 | 丝袜美腿亚洲一区| 国产一区不卡精品| 欧美优质美女网站| 久久伊99综合婷婷久久伊| 亚洲欧美另类综合偷拍| 久久99国产乱子伦精品免费| 色欲综合视频天天天| 日韩视频123| 亚洲精品国产a久久久久久 | 欧美羞羞免费网站| 久久毛片高清国产| 午夜婷婷国产麻豆精品| 不卡av在线网| 精品国产乱码久久久久久浪潮 | 色乱码一区二区三区88| xnxx国产精品| 日韩国产在线观看一区| 91视频国产观看| 国产网站一区二区| 蜜桃免费网站一区二区三区| 色www精品视频在线观看| 久久久99精品免费观看不卡| 日韩成人一级片| 在线视频欧美精品| 1区2区3区精品视频| 国内不卡的二区三区中文字幕| 欧美性色黄大片| 亚洲免费观看高清完整版在线| 国产精品一区二区免费不卡 | 本田岬高潮一区二区三区| 日韩欧美一二三| 午夜天堂影视香蕉久久| 一本大道久久精品懂色aⅴ| 国产女人aaa级久久久级| 狠狠色丁香久久婷婷综合_中 | 自拍偷拍国产精品| 成人av电影在线| 中文字幕亚洲在| 国产不卡视频在线播放| 国产欧美一区二区精品性色超碰| 久久99国产精品麻豆| 日韩视频一区二区在线观看| 日韩国产在线一| 欧美一级午夜免费电影| 久久99精品国产麻豆不卡| 日韩亚洲欧美在线观看| 麻豆一区二区三| 久久综合成人精品亚洲另类欧美 | 国产一区二区美女诱惑| 日韩精品在线一区二区| 久久99精品国产麻豆不卡| 精品久久久久久久久久久院品网 | 一区二区三区不卡视频在线观看| 99久久精品免费精品国产| 亚洲欧洲av另类| 欧美视频中文字幕| 水野朝阳av一区二区三区| 日韩视频一区在线观看| 99精品久久99久久久久| 亚洲色图在线视频| 欧美日韩三级视频| 精品一区二区三区香蕉蜜桃| xnxx国产精品| 色婷婷久久久综合中文字幕| 亚洲自拍欧美精品| 日韩一区二区三区视频| 风间由美一区二区av101| 亚洲欧美日韩小说| 91精品国产欧美一区二区18 | 欧美亚洲一区二区在线| 日韩高清中文字幕一区| 欧美精品一区二区三区很污很色的| 国产福利一区二区三区| 亚洲免费观看高清在线观看| 日韩欧美美女一区二区三区| 国产精品12区| 午夜视频一区二区| 国产日产亚洲精品系列| 欧洲人成人精品| 国内精品久久久久影院薰衣草| 亚洲激情在线激情| 国产日产欧美精品一区二区三区| 欧美性受xxxx黑人xyx性爽| 国产成人亚洲综合色影视| 亚洲一区二区视频| 国产欧美一区在线| 欧美日韩日日夜夜| 99国产精品久久久久| 国精产品一区一区三区mba桃花| 亚洲私人黄色宅男| 2017欧美狠狠色| 欧美精品乱人伦久久久久久| 国产乱码精品一区二区三区av| 亚洲国产va精品久久久不卡综合 | 一区二区三区精品视频在线| 精品国产乱码久久久久久图片| 欧洲亚洲精品在线| 99r国产精品| 国产乱子伦一区二区三区国色天香 | 欧美日韩成人激情| 91日韩一区二区三区| 国产成人免费av在线| 久久精品国产成人一区二区三区| 一区二区视频在线| 国产精品国产精品国产专区不片| 2014亚洲片线观看视频免费| 日韩欧美在线1卡| 91精品国产欧美一区二区18| 欧美主播一区二区三区| hitomi一区二区三区精品| 国产一区不卡在线| 激情综合五月天| 蜜乳av一区二区三区| 麻豆91精品91久久久的内涵| 天堂一区二区在线免费观看| 午夜精品久久久久久久久| 亚洲午夜一二三区视频| 一二三四区精品视频| 一卡二卡三卡日韩欧美| 亚洲激情av在线| 一区二区三区四区不卡视频| 亚洲黄网站在线观看| 亚洲综合免费观看高清完整版| 亚洲另类色综合网站| 亚洲另类春色校园小说| 亚洲图片一区二区| 日韩成人一级大片| 精品午夜一区二区三区在线观看| 极品少妇一区二区| 国产剧情一区二区| 国产成人午夜精品影院观看视频 | 欧美国产日本视频| 亚洲私人黄色宅男| 午夜a成v人精品| 麻豆91在线观看| 成人国产精品免费观看| av成人免费在线观看| 欧美亚州韩日在线看免费版国语版| 欧美日韩精品专区| 欧美videos大乳护士334| 久久精品视频免费| 国产精品麻豆视频| 亚洲制服丝袜av| 极品销魂美女一区二区三区| 成人福利视频网站| 欧美精三区欧美精三区| 久久综合狠狠综合| 久久成人免费网| 高清在线成人网| 欧美特级限制片免费在线观看| 日韩午夜电影在线观看| 欧美激情一区在线观看| 亚洲成人动漫在线观看| 久久99九九99精品| 欧美在线制服丝袜| 久久久电影一区二区三区| 亚洲一区在线观看视频| 久久9热精品视频| 在线视频国内一区二区| 久久久久国产精品麻豆| 一区二区三区四区亚洲| 国模无码大尺度一区二区三区| 色哟哟国产精品免费观看| 国产亚洲一二三区| 日韩二区三区在线观看| 色综合天天做天天爱|