130 likes | 145 Views
Systems Programming Assignment 3. Mission name Skill Time PreRequisites Items. Warehouse Hold all the resources Sergeants tack resources and release them. Dead lock can occur here. Board. Hold all the missions In the beginning, main adds all the missions to the board
E N D
Mission • name • Skill • Time • PreRequisites • Items
Warehouse • Hold all the resources • Sergeants tack resources and release them Dead lock can occur here
Board • Hold all the missions • In the beginning, main adds all the missions to the board • The Chief of Staff takes all the relevant missions • Sergeants modify the mission in the board
Mission Holder • Hold missions that can be worked on • Chief of Staff adds and removes missions from the Mission Holder • Is used only by the Chief of Staff • Should be verified through TDD
Chief of Staff • Takes missions from the board and adds them to missions holder • Gives missions to sergeants
Sergeants • Get missions from the Chief of Staff • Get items from the warehouse • Work on the mission • Release the items • If there is more time to work on the mission, return it to his sergeant • If there is no more time, notify about it and check if there are missions in the board with satisfied prerequisites.
Observer • Read commands from the console • The observer provides a way to know what is happening in the program • He can stop the program at any time
Startup • Read config files names • Set up the logger • Read the config files • Set-up the system: • Create the board • Create the warehouse • Create the sergeants • Create the Chief of Staff • Start the observer, sergeants and Chief of Staff
Don’t forget • Checkstyle • Pmd • Ant
Common Questions • Can I add more classes? • Yes • Do you require checkstyle also for our tests? • We will not grade you on it • Can I change the interfaces in the final program? • Yes, but you will be graded on the first one too. • Can we have a delay? • Collective: no, specific: email us • If you have Questions, please post it in the forum so everyone can see it • Questions that will be sent by email will not be answered