faultmodel.java

来自「Java遗传算法库」· Java 代码 · 共 32 行

JAVA
32
字号
/*
 * FaultModel.java
 *
 * Created on May 16, 2002, 3:51 PM
 */

package jaga.pj.circuits.fpgaft;

/** Interface for defining models of fault sequences.  Each element in this
 * sequence or enumeration will be a set of faults affecting a circuit.
 * <p> The
 * reset() method restarts the fault sequence, possibly for the evaluation of
 * another individual.
 * <p> The nextElement() method inherited from Enumeration
 * returns a representation of the next fault set.  The suggested representation
 * for these faults is a list of pairs of integers.  These pairs can be
 * implemented with the java.awt.Point class using .x as the position of the
 * fault and .y as the type of the fault as defined in the FTLib class.  The
 * list could be implemented using the Vector class.  In the case of single
 * fault models the list could be ommited as long as classes using these 
 * SingleFaultModels are aware of this.
 * <p> The hasMoreElements() method will return true if there are more faults
 * in the sequence defined by the implementing class.
 *
 * @author  Michael Garvie
 * @version 
 */
public interface FaultModel extends java.util.Enumeration, java.io.Serializable {    
    /** Resets the sequence of faults
    */
    public void reset();
}

⌨️ 快捷键说明

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