using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JobScheduling
{
using System.Drawing;
///
/// a task for the job scheduling problem - belongs to a job
///
public class Task : ITask
{
///
/// the job, this task belongs to - labeled by a color
///
public Job Job { get; set; }
///
/// time step belonging to this task
///
public int StepNumber { get; set; }
///
/// duration of this task
///
public int Duration { get; set; }
///
/// a readable representation of the task
///
///
public override string ToString()
{
return string.Format($"{this.Job}_{StepNumber-1}");
}
}
}