Beispiel #1
0
 public static ChipStatusMediator Create(ChipStatus src)
 {
     return((new Deserializer())
            .Deserialize <ChipStatusMediator>
            (
                (new Serializer()).Serialize(src)
            ));
 }
Beispiel #2
0
        public List <ChipStatus> CheckedChips(string path)
        {
            var result = new List <ChipStatus>();

            IEnumerable <string> dirs = System.IO.Directory.EnumerateDirectories(
                path,
                searchPattern,
                System.IO.SearchOption.AllDirectories);

            foreach (string dir in dirs)
            {
                var mc = System.Text.RegularExpressions.Regex.Matches(
                    dir,
                    Regex,
                    System.Text.RegularExpressions.RegexOptions.IgnoreCase);

                foreach (System.Text.RegularExpressions.Match m in mc)
                {
                    var buf = new ChipStatus()
                    {
                        LotNo    = m.Groups["lot"].Value,
                        WfNo     = m.Groups["wf"].Value,
                        ChipNo   = m.Groups["chip"].Value,
                        FilePath = dir,

                        //!!! 設定値の注入が必要
                        Condition = Condition,
                        Picture   = Picture,
                        Maps      = Maps
                    };
                    result.Add(buf);
                }
            }

            return(result);
        }