edu.byu.ece.edif.tools.replicate.nmr.dwc
Class DualRailDetectionType

java.lang.Object
  extended by edu.byu.ece.edif.tools.replicate.nmr.dwc.AbstractDetectionType
      extended by edu.byu.ece.edif.tools.replicate.nmr.dwc.RailedDetectionType
          extended by edu.byu.ece.edif.tools.replicate.nmr.dwc.DualRailDetectionType
All Implemented Interfaces:
DetectionType, java.io.Serializable

public class DualRailDetectionType
extends RailedDetectionType

DualRailDetectionType uses a 2-bit signal to encode error occurrences. (00 = no error, 11 = error, 10 or 01 = detector error).

See Also:
Serialized Form

Field Summary
protected static java.util.Map<Organ,DualRailDetectionType> _instances
           
 
Fields inherited from class edu.byu.ece.edif.tools.replicate.nmr.dwc.RailedDetectionType
_detectorOrgan, _railFactor
 
Fields inherited from class edu.byu.ece.edif.tools.replicate.nmr.dwc.AbstractDetectionType
_signalWidth, _useComparatorForDownscale, _useComparatorForUpscale
 
Constructor Summary
protected DualRailDetectionType(Organ detectorOrgan)
           
 
Method Summary
static DualRailDetectionType getInstance(Organ detectorOrgan)
           
private  java.lang.Object readResolve()
          This method ensures that during deserialization, the _instances map will be referred to and possibly modified so that extra instances (more than necessary) don't get created.
 
Methods inherited from class edu.byu.ece.edif.tools.replicate.nmr.dwc.RailedDetectionType
antiDetect, defaultDetect, forceDetect
 
Methods inherited from class edu.byu.ece.edif.tools.replicate.nmr.dwc.AbstractDetectionType
getSignalWidth, setUseComparatorForDownscale, setUseComparatorForUpscale, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_instances

protected static java.util.Map<Organ,DualRailDetectionType> _instances
Constructor Detail

DualRailDetectionType

protected DualRailDetectionType(Organ detectorOrgan)
Method Detail

getInstance

public static DualRailDetectionType getInstance(Organ detectorOrgan)

readResolve

private java.lang.Object readResolve()
                              throws java.io.ObjectStreamException
This method ensures that during deserialization, the _instances map will be referred to and possibly modified so that extra instances (more than necessary) don't get created.

Returns:
Throws:
java.io.ObjectStreamException