This Java program parses given Simulink .mdl files and extract blocks attributes. Creating new objects with the extracted attributes from the .mdl file and then displays these blocks in GUI using these attributes to display them.
- Download the "Advanced Programming Project" in the GitHub repo.
- Make sure your IDE has javafx library installed.
- Download the "Example.mdl" file for test causes.
- Run the code and follow the program instructions to pass file path (don't forget to remove the "" when passing the path of Example.mdl)
| Method name | Uses |
|---|---|
| FileReader() | Used to read the .xml file and extract the useful content for GUI. |
| ParseLines() | Used to parse lines from the .xml file. |
| ParseBranches() | Used to parse branches from the .xml file. |
| ParseBlocks() | Used to parse blocks from the .xml file. |
| Method name | Uses |
|---|---|
| drawArrow() | Draws arrows. |
| drawBlock() | Draws blocks with specifications. |
| Name | ID | GitHub Username |
|---|---|---|
| Ahmad Youssef Mansour Mahfouz | 2002238 | rye141200 |
| Mohammed Mostafa Mahmoud | 2001299 | mohamed-most |
| Mazen Waleed Abdelmonem Zein | 2000978 | MazenZein1512 |
| Magdy Nabil Wahba | 2001964 | magdynabil22 |








