📄 absencodedstate.java
字号:
/** * Description: provide the location information of a point with goodness value * * @ Author Create/Modi Note * Xiaofeng Xie Apr 6, 2005 * Xiaofeng Xie Apr 20, 2005 * Xiaofeng Xie Apr 28, 2006 MAOS-TSP Beta 1.1.002 * * 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;import Global.basic.*;import maosKernel.represent.space.*;import maosKernel.represent.encode.*;public class AbsEncodedState extends BasicAttrib implements IEncodedStateEngine, IINFOStateTag { private SearchState searchState; private OEncodeData encodeValue; public AbsEncodedState(AbsLandscape landscape) { setSearchState(landscape.getSearchSpace().getNullState()); setEncodeInfo(landscape.getNullOEncodeData()); } public AbsEncodedState(SearchState state) { this.setSearchState(state); } public String getKey(){ return "EncodedState"; } public void setSearchState(SearchState state) { this.searchState = state; } public void setEncodeInfo(OEncodeData encodeValue) { this.encodeValue = encodeValue; } public void importSearchState(SearchState searchState) { this.searchState.importSearchState(searchState); } public void importEncodeData(OEncodeData encodeValue) { this.encodeValue.importData(encodeValue); } public void importEncodeState(AbsEncodedState point) { importEncodeState(point.getSearchState(), point.encodeValue); } public void importEncodeState(SearchState searchState, OEncodeData encodeValue) { importSearchState(searchState); importEncodeData(encodeValue); } public SearchState getSearchState() { return searchState; } public OEncodeData getEncodeInfo() { return encodeValue; } public String writeEncodeInfo() { return encodeValue.writeInfo(); } public void removeEncodeInfo() { encodeValue.removeInfo(); } public boolean isEncoded() { return !encodeValue.isInfoRemoved(); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -