A task (e.g., A B C …) can be completed only if it has no dependencies or all its dependencies are met. A dependency: (A, B) indicates that A has to be completed before B. A task list is a list of all tasks to be completed. A dependency list is a list of all dependencies for all task. The task list and dependency list will be read from a text file. A time step is the event when all task that can be completed is completed.
The task list and the dependency list can be modified according to user input. When a task is deleted, all dependencies for the deleted task are also deleted.
The task list and dependency list are read into your project from a single text file (“taskData.txt”). The first line in the text file gives the task list. Tasks are separated by a space. The second line in the text file gives the dependency list. The dependencies are separated by a space.


0 comments