Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        /// <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;
        }
Ejemplo n.º 4
0
        /// <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;
        }