jaga.pj.circuits.fpgaft
Class SingleStaticFaultModel

java.lang.Object
  |
  +--jaga.pj.circuits.fpgaft.SingleStaticFaultModel
All Implemented Interfaces:
java.util.Enumeration, FaultModel, java.io.Serializable, SingleFaultModel

public class SingleStaticFaultModel
extends java.lang.Object
implements SingleFaultModel

A fault model where a single fixed element can fail in various ways. This generates a fault sequence of length 1.

See Also:
Serialized Form

Constructor Summary
SingleStaticFaultModel(int ppos)
          Creates new SingleStaticFaultModel
SingleStaticFaultModel(int ppos, int ftypes)
          Creates new SingleStaticFaultModel
 
Method Summary
 boolean hasMoreElements()
           
 java.lang.Object nextElement()
           
 void reset()
          Resets the sequence of faults
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleStaticFaultModel

public SingleStaticFaultModel(int ppos)
Creates new SingleStaticFaultModel
Parameters:
ppos - position of element that will fail.

SingleStaticFaultModel

public SingleStaticFaultModel(int ppos,
                              int ftypes)
Creates new SingleStaticFaultModel
Parameters:
ppos - position of element that will fail.
ftypes - number of fault types to generate. These are as defined in FTLib.
Method Detail

reset

public void reset()
Resets the sequence of faults
Specified by:
reset in interface FaultModel

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object