/// <summary> /// Constructor. /// </summary> /// <param name="taskId">Task id</param> /// <returns>ThreadTrace</returns> public static ThreadTrace CreateTraceForTask(int taskId) { ThreadTrace trace = new ThreadTrace(); trace.IsTask = true; trace.TaskId = taskId; trace.Accesses = new List <ActionInstr>(); return(trace); }
/// <summary> /// Constructor. /// </summary> /// <param name="machineId">Machine id</param> /// <returns>ThreadTrace</returns> public static ThreadTrace CreateTraceForMachine(int machineId) { ThreadTrace trace = new ThreadTrace(); trace.MachineId = machineId; trace.IsTask = false; trace.TaskId = -1; trace.Accesses = new List <ActionInstr>(); return(trace); }