public MipsSignalTable AddTimePoint(int clock, LoopData loopData) { if (!timePoints.Select(x => x.TimePoint).Contains(clock)) { char[] ap = Enumerable.Range('A', 'Z' - 'A' + 1).Select(i => (char)i).ToArray(); timePoints.Add(new PsgPoint(ap[timePoints.Count].ToString(), clock, loopData)); } return(new MipsSignalTable(timePoints)); }
public void UpdatePsgPointLoopData(LoopData data) { PsgPointLoopData = data; }
/// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="timePoint"></param> public PsgPoint(string name, int timePoint) : this() { Name = name; TimePoint = timePoint; PsgPointLoopData = new LoopData(); }
/// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="timePoint"></param> /// <param name="loopData"></param> public PsgPoint(string name, int timePoint, LoopData loopData) : this(name, timePoint) { PsgPointLoopData = loopData; }
private PsgPoint() { digitalOutput = new Dictionary <string, bool>(); dcBias = new Dictionary <string, double>(); PsgPointLoopData = new LoopData(); }