Skip to content

Simulator to run abstract machine with dual cores implemented by Java

License

Notifications You must be signed in to change notification settings

skyisveryblue1/abm_simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abm_simulator

Simulator for running abstract machine with dual cores implemented by Java

  1. Introduction of System This project is a system as a simulator for running abstract machine with dual cores. Here we will introduce about diagram of the simulator.

1.1. Diagram
image
Figure 1. Diagram of ABM Simulator with dual core.

1.2. Structure of project 1.2.1. ABMSimulator2 This component is implemented by ABMSimulator2 Java class and is used for:

  • Creating Menu Bar and Other UI components including panels and text areas
  • Adding additional component
  • Initializing two cores of simulator

1.2.2. ABMSimulatorCore This component is implemented by ABMSimulatorCore Java class, an inner class of ABMSimulator2 class and is used for:

  • Creating local variables of one ABMSimulator core.
  • Loading content of abm file.
  • Running abm commands and outputting its result. 1.2.3. addActionListener This functions are used to process the actions of user through UI menu button components and are used for :
  • Browsing abm files through File selector.
  • Running the simulator.
  1. User Guide 2.1. How to install environment?
  • Install JDK +1.8
  • Install VSCode
  • Install Java Extension. 2.2. What operating system was used? MacOS/Linux 2.3. How to compile your program? It can be compiled by using VSCode and other tools includes IntelliJ IDE and so on.

2.4. How to run the program?

  • Step1: Open the ABMSimulator2.Java by VSCode and execute the program. image

  • Stem2: After open window, click the “File/Open” menu button.

  • Step 3: Press the “Run” menu button.  image

  1. Test Result Open “test1forP2.abm” and Run then gives the following result: image

About

Simulator to run abstract machine with dual cores implemented by Java

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages