Skip to content

Commit

Permalink
Merge pull request #161 from mucsci-students/develop
Browse files Browse the repository at this point in the history
Sprint 2 Release
  • Loading branch information
smschwartz committed Mar 11, 2024
2 parents 5f9986b + f7268e0 commit 2e9987a
Show file tree
Hide file tree
Showing 36 changed files with 4,681 additions and 1,801 deletions.
38 changes: 0 additions & 38 deletions Attribute.java

This file was deleted.

30 changes: 0 additions & 30 deletions Method.java

This file was deleted.

48 changes: 16 additions & 32 deletions README.md
Expand Up @@ -6,52 +6,36 @@ This application provides users with a platform to visually represent the struct
aiding in design, analysis, and documentation.

# Features:
The UML Editor Command Line Tool offers the following features:

**Add class**: create new classes.
**Delete class**: Remove existing classes.
**Rename class**: Change the name of classes.
**List Class**: List a class and its attributes and methods.
**List Classes**: List all the classes in the current program.
**Add Relationship**: Establish connections between classes.
**Delete Relationship**: Remove connections between classes.
**List Relationships**: Show all relationship between existing classes.
**Add Attribute**: Attach attributes to classes.
**Rename Attribute**: Change the name of an existing attribute.
**Delete Attribute**: Remove attribute from classes.
**Add Method**: Add a method to an existing class.
**Rename Method**: Change the name of an existing method.
**Delete Method**: Delete a method from an existing class.
**Save**: Current state of the program into a file.
**Load**: A file into the program.
**Help**: List of commands the program understands.
**Exit**: Exit program.

Create, delete, and manipulate classes with fields, methods, and relationships.
Save and load to standar JSON format.

# State to run the program:

# 1.Requirements:

- Java Development Kit (JDK)
- Gradle
- Gson library (for JSON serialization and deserialization)

# 2. Running the Application
To run the UML Editor Command Line Tool,
Run the main class UMLCli.

Using Gson
# 3. Using Gson
[Gson](https://github.com/google/gson) is a Java library that can be used to convert Java Objects into their JSON representation and vice versa. In the context of the UML Editor Command Line Tool, Gson is utilized for saving and loading diagrams in JSON format.

Adding Gson Dependency
If you're using Maven, you can add Gson as a dependency in your `pom.xml` file:
-- xml --
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.8</version>
</dependency>
If you're using Gradle, add the following line to your build.gradle file:
-- implementation 'com.google.code.gson:gson:2.8.8' ---
# 4. Adding Gson Dependency
Use Gradle, add the following dependencies to your build.gradle file:
implementation 'com.google.guava:guava:31.1-jre'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'

# 5. How to Run
Open terminal, open the file directory where the zip was saved.
Type "gradle build"
Type "gradle run" to run program

# Authors:
David Marquez, Natnael Thehaye, Simeon Belayneh, Ram Gurung
Natnael Thehaye, David Marquez, Simeon Belayneh, Ram Gurung
65 changes: 0 additions & 65 deletions Relationship.java

This file was deleted.

76 changes: 0 additions & 76 deletions Test/TestAttributeAndMethodLayOut.java

This file was deleted.

35 changes: 0 additions & 35 deletions Test/testAttribute

This file was deleted.

0 comments on commit 2e9987a

Please sign in to comment.