jaga.pj.circuits.fpgaft
Interface FaultModel

All Superinterfaces:
java.util.Enumeration, java.io.Serializable
All Known Subinterfaces:
SingleFaultModel

public interface FaultModel
extends java.util.Enumeration, java.io.Serializable

Interface for defining models of fault sequences. Each element in this sequence or enumeration will be a set of faults affecting a circuit.

The reset() method restarts the fault sequence, possibly for the evaluation of another individual.

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.

The hasMoreElements() method will return true if there are more faults in the sequence defined by the implementing class.


Method Summary
 void reset()
          Resets the sequence of faults
 
Methods inherited from interface java.util.Enumeration
hasMoreElements, nextElement
 

Method Detail

reset

public void reset()
Resets the sequence of faults