Highlights
In this assignment, you will design a multithreaded Java program, ensuring both thread safety and sufficient concurrency for it to function well. This builds on the problem presented in the parallel computing solution from the first assignment.
1. Problem Description
You will implement a multithreaded water flow simulator (Fig.1) that shows how water on a terrain flows downhill, accumulating in basins and flowing off the edge of the terrain.
The user interface to display the results of this simulation should have the following behaviour:
• A main display window that shows the landscape as a greyscale image, with black representing the lowest elevation and white the highest. Overlaid on this should be an image representing the locations of water in blue. Note that although the water will have a depth, represented as an integer value, the colouring is the same uniform blue for any depth value greater than zero.
• A counter that displays the number of timesteps since the start of the simulation (not shown in Fig. 1).
• A ‘reset’ button that zeroes both the water depth across the entire landscape and the timestep count .
• A ‘pause’ button that temporarily stops the simulation.
• A ‘play’ button that either starts the simulation or allows it to continue running if it was previously paused.
• An ‘end’ button that closes the window and exits the program.
2. Requirements
2.1 Input
Your program must take a single command-line parameter: <intput_file>
This encodes data for the landscape in the same format as used for the first assignment.
2.2 Controls
Your program needs to have a reset, pause, play, and end button to control the state of the simulation. There also needs to be a display of the current timestep. None of this functionality is available in the skeleton.
2.3 Output
The GUI needs to display the results of the simulation as it occurs. Ideally, the rendering of the landscape and water should occur at a faster rate than the simulation to ensure that none of the detail is missed by the user.
This CSC2002S: IT Assignment has been solved by our IT Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.