Skip to content

Releases: samujjwaal/Design-Pattern-Code-Generator

Object-oriented design and implementation of a Design Pattern Code Generator

07 Mar 11:08
e2c23c5
Compare
Choose a tag to compare

Object-oriented design and implementation of a Design Pattern Code Generator.

This project is the implementation of a program that generates the implementation code of the 23 Gang of Four(GoF) design patterns, as presented in the book “Design Patterns: Elements of Reusable Object-Oriented Software”.


###Instructions to Execute

First clone the repository from Bitbucket.

Execution can be in two modes, using default config file or using interactive environment/menu to get custom inputs from user.

The default.conf configuration file is present at src/main/resources.

For command line execution, locate hw1-assembly-0.1.jar at target\scala-2.13.

On Windows, the command to run the jar file: java -jar hw1-assembly-0.1.jar mode

  • Executing using default config file, then mode = 0:

    • run java -jar hw1-assembly-0.1.jar 0

  • Executing using custom inputs from user, then mode = 1:

    • run java -jar hw1-assembly-0.1.jar 1

For execution in IntelliJ, use run 0 or run 1 for the preferred way of execution (argument passed has similar purpose like in the command line method)

The output java files are saved under the package name provided in the config file (or as custom input) in a folder named outputs. The outputs folder is created in the current working directory during execution.