Beispiel #1
0
        public bool Transfer(Rossi rap, RossiAlphaResult rar)
        {
            if (rar == null)
            {
                return(true);
            }
            bool res = true;

            try
            {
                RossiAlphaResultExt ra = new RossiAlphaResultExt(rar.gateWidth, rar.gateData);   // deep copy via constructor menas no extra transfer function is needed
                countresults.Add(rap, ra);
            }
            catch (OutOfMemoryException e)
            {
                rap.reason = "Rossi transfer " + e.Message;
                res        = false;
                logger?.TraceEvent(LogLevels.Error, 87408, rap.reason);
            }
            return(res);
        }
Beispiel #2
0
 public bool Transfer(Rossi rap, RossiAlphaResult rar)
 {
     if (rar == null)
         return true;
     bool res = true;
     try
     {
         RossiAlphaResultExt ra = new RossiAlphaResultExt(rar.gateWidth, rar.gateData);   // deep copy via constructor menas no extra transfer function is needed
         countresults.Add(rap, ra);
     }
     catch (OutOfMemoryException e)
     {
         rap.reason = "Rossi transfer " + e.Message;
         res = false;
         logger.TraceEvent(LogLevels.Error, 87408, rap.reason);
     }
     return res;
 }
 public RossiAlphaResult GetResult()
 {
     RossiAlphaResult result = new RossiAlphaResult(rossiAlphaGateWidth,
                                                    GetRossiAlphaAnalysisResult());
     return (result);
 }