A large and complex MSc Java project (awarded a mark of 80%) that simulates the interactions between Households and Aggregators in a SmartGrid network (including the associated security concerns). I was responsible for all of the code below (namely the core system framework code) with the exception of a few files (clearly marked with @author JDoc annotations, and included in this repo for completeness). The code uses a plethora of Design Patterns such as Singleton, Observer, and Command (to mimic higher-order functions). During the simulation a random set of Households with multiple Appliances are generated for each Aggregator. Appliances have varying power requirements, and usage hours that are modelled via implementations of the IPolicy interface. This allows a user to model events such as a Dinner at which time the Oven, Lights, and other related Appliances would be in use. The TimedEvent framework handles callbacks, scheduling and replaying of events. There is a GUI that shows the network at different granularities, right down to individual graphed Appliance usage for a Household as the program runs. A mock-Command Line, that provided alternate program control, was also implemented. A Thread Safe Controller is responsible for asynchronously executing user interactions to avoid ConcurrentModificationExceptions. The program outputs verbose messages to a text file for reviewing after the simulation completes.