Exemplo n.º 1
0
        private IPathEntity parseDelay(BlockType type, string[] ParamArr)
        {
            DelayPathEntity entity = new DelayPathEntity();

            entity.Type  = type;
            entity.Delay = double.Parse(ParamArr[0]);//TODO check NCI file for params in delay block
            return(entity);
        }
Exemplo n.º 2
0
        private DelayPathEntity ParseDelay(string ncLine, BlockType blockT, bool jeton, bool invertedF)
        {
            var dp = new DelayPathEntity();

            string[] splitLine = ncLine.Split(splitters, StringSplitOptions.None);
            foreach (string str in splitLine)
            {
                if (str.Contains(n))
                {
                    dp.LineNumber = ParseInt(str, n);
                }
                if (str.Contains(k))
                {
                    dp.Delay = ParseDouble(str, k);
                }
            }
            return(dp);
        }