📄 oencodeidata.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 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * Please acknowledge the author(s) if you use this code in any way. */package maosKernel.represent.encode.iEncode;import Global.basic.attrib.*;import maosKernel.represent.encode.*;public class OEncodeIData implements OEncodeData, IReturnGlobalCostEngine, IEncodeDeltaIEngine { public static final int WOSRTVALUE = Integer.MAX_VALUE; public static final int LOWERVALUE = -Integer.MAX_VALUE; private int encodeValue = WOSRTVALUE; public OEncodeIData(){ this.removeInfo(); } public OEncodeIData(int encodeV){ this.encodeValue = encodeV; } public void importData(IImportableEngine data) { encodeValue = ((OEncodeIData)data).encodeValue; } public void removeInfo() { this.encodeValue = WOSRTVALUE; } public boolean isInfoRemoved() { return this.encodeValue == WOSRTVALUE; } public boolean compareTo(IEncodeComparable data) { return encodeValue<=((OEncodeIData)data).encodeValue; } public void setIEncodeInfo(int encodeValue) { this.encodeValue = encodeValue; } public int getGlobalCost() { return encodeValue; } public void setDeltaIEncodeInfo(int 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 + -