/// <summary> /// parse delay value from NCI file /// </summary> /// <param name="type"></param> /// <param name="ParamArr"></param> /// <returns></returns> private PathEntity delay(BlockType type, string[] ParamArr) { DelayPathEntity entity = new DelayPathEntity(); entity.Delay = double.Parse(ParamArr[0]);//TODO check NCI file for params in delay block return(entity); }
private DelayPathEntity parseDelay(string ncLine, BlockType blockT, bool jeton, bool invertedF) { DelayPathEntity 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); }
private List <ModelPathEntity> parseDelay(double increment, PathEntity5Axis entity, DelayPathEntity delayEnt) { try { List <ModelPathEntity> path = new List <ModelPathEntity>(); int parseCount = (int)Math.Round(delayEnt.Delay / increment); for (int i = 0; i < parseCount; i++) { path.Add(new ModelPathEntity(entity)); } return(path); } catch (Exception) { throw; } }