abssolutioniohandler.java
来自「用于求解TSP(Traveling salesman problem」· Java 代码 · 共 39 行
JAVA
39 行
/**
* Description: provide the information for solution IO handler
*
* @ Author Create/Modi Note
* Xiaofeng Xie Jul 12, 2006
*/
package maosKernel.infoIO;
import maosKernel.represent.*;
public abstract class AbsSolutionIOHandler {
private String solutionSuffix = ".sln";
public AbsSolutionIOHandler() {
}
public String getSolutionSuffix() {
return this.solutionSuffix;
}
public void setSolutionSuffix(String fileSuffix) {
this.solutionSuffix = fileSuffix;
}
public void readSolution(EncodedState state, String content) throws Exception {
this.naiveReadSolution(state, content);
}
public String writeSolution(EncodedState state) throws Exception {
throw new UnsupportedOperationException();
}
protected void naiveReadSolution(EncodedState state, String content) throws Exception {
throw new UnsupportedOperationException();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?