⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oencodeddata.java

📁 pso源程序
💻 JAVA
字号:
/** * Description: the abstract encoded data that associated with a state that used *  by goodness evaluation part * * @ Author        Create/Modi     Note * Xiaofeng Xie    Apr  6, 2005 * Xiaofeng Xie    Aug 02, 2006 * */package maosKernel.represent.encode.dEncode;import Global.basic.attrib.*;import maosKernel.represent.encode.*;public class OEncodeDData implements OEncodeData, IGetDEncodeEngine, IEncodeDeltaDEngine  {  public static final double WOSRTVALUE = Double.MAX_VALUE;  public static final double LOWERVALUE = -Double.MAX_VALUE;  private double encodeValue = WOSRTVALUE;  public OEncodeDData(){    this.removeInfo();  }  public OEncodeDData(double encodeV){    this.encodeValue = encodeV;  }  public void importData(IImportableEngine data) {    encodeValue = ((OEncodeDData)data).encodeValue;  }  public void removeInfo() {    this.encodeValue = WOSRTVALUE;  }  public boolean isInfoRemoved() {    return this.encodeValue == WOSRTVALUE;  }  public boolean compareTo(IEncodeComparable data) {    return encodeValue<=((OEncodeDData)data).encodeValue;  }  public void setDEncodeInfo(double encodeValue) {    this.encodeValue = encodeValue;  }  public double getDEncodeInfo() {    return encodeValue;  }  public void setDeltaDEncodeInfo(double deltaV) {    this.encodeValue += deltaV;  }  public void readInfo(String infoString) {    encodeValue = Integer.parseInt(infoString);  }  public String writeInfo() {    return ""+encodeValue;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -