oencodeddata.java

来自「pso源程序」· Java 代码 · 共 65 行

JAVA
65
字号
/** * 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 + =
减小字号Ctrl + -
显示快捷键?