Implement In Java the Snapshot pattern depicted In the UML diagram in snapshot.pdf file. Please pay special attention to the access modifiers (+: public, -: private or no sign: package) for each attribute and operation and implement them in Java.
The UML diagram follows some of classes defined in the Snapshot pattern in book (page 371) which has more details than in my diagram. Please read the descriptions about them in the book. My MdestonefementolFhas two methods and my private static class Mllestonenemenfo has three attributes.
The UML diagram follows some of classes defined in the Snapshot pattern in book (page 371) which has more details than in my diagram. Please read the descriptions about them in the book. My MdestonefementolFhas two methods and my private static class Mllestonenemenfo has three attributes.
- Here are a couple of extra points you need to be aware of: • GameUserInterface class Is the program that user Interacts with. • gets user selected file through JFileChooser
- Uses GameSerializer which is the action listener that serializes (saves) GameModel object Into a user-specified file.
- Uses GameDeserializer which Is also an action listener that deserializes (read object) from a user specified file.
- Gets MilestoneMementoManager from GameModel and uses the result of gethlilestoneMementose to show all available mementos to user
- GameModel class is a singleton class
- Private constructor creates an instance of MilestoneMementoManager passing itself (GameModel) as parameter
- has a readResolve() method that the readObject() will call and return the object returned by readResolve(). See page 383 in your book.
- You need to provide get and set methods for hero and villain attributes (getHero():Hero, setHero(Hero), getVlilain():Villaln and setVillain(Villain)). • Character class hierarchy
- You need to provide get and set methods for all attributes in this class hierarchy.