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

📄 abssolutioniohandler.java

📁 用于求解TSP(Traveling salesman problem
💻 JAVA
字号:
/**
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -