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

📄 searchstate.java

📁 mallet是自然语言处理、机器学习领域的一个开源项目。
💻 JAVA
字号:
package edu.umass.cs.mallet.base.util.search;import java.util.Iterator;/** * Created by IntelliJ IDEA. * User: pereira * Date: Jun 20, 2005 * Time: 4:54:46 PM * A state (vertex) in a graph being searched. */public interface SearchState {  /**   * Iterator over the states with transitions from a given state.   */  public static abstract class NextStateIterator implements Iterator {    public abstract boolean hasNext();    public Object next() {return nextState(); };    /**     * Get the next reachable state.     * @return the state     */    public abstract SearchState nextState();    /**     * The cost of the transition to the current state.     * @return transition cost     */    public abstract double cost();    public void remove() {      throw new UnsupportedOperationException();    }  }  /**   * Get an iterator over the states with transitions from   * this state.   * @return the iterator   */  public abstract NextStateIterator getNextStates();  /**   * Is this state final?   * @return whether this state is final   */  public abstract boolean isFinal();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -