Skip to content

manugarciaquismondo/MeCoGUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MeCoGUI

MeCoGUI is a minimalistic Graphic User Interface (GUI) for the modeling and simulation of P-Lingua models using pLinguaCore. MeCoGUI provides controls to parse, simulate and export P system specifications.

To run MeCoGUI, download the file jar/MeCoGUI.jar. Then, type in a command prompt console:

java -jar MeCoGUI.jar

After this, the following interface must appear:

MeCoGUI main screen

To load a P-Lingua model, click on File>Load Model and select the P-Lingua specification to simulate.

Load P-Lingua model

Then, click on File>Load Data and select the parameters of the model in .CSV format.

Load model parameters

The parameters file must contain a steps_per_cycle parameter indicating how many steps compose a simulation cycle.

Steps per cycle

Optionally, a report file with simulation statistics can also be generated clicking on File>Set Report. Thsi file will be generated during the simulations.

Set report file

The routes of the selected files will appear in MeCoGUI.

MeCoGUI route display

Once the Model and Data file routes have been set, the P system can be parsed clicking on Initialize.

Initialize model

If the parsing process produced no errors, the parsed model should appear on the Info console tab. Otherwise, errors will appear on the Error console tab. Likewise, any warnings will appear on the Warning console tab.

Model initialized

All consoles can be cleared by clicking on the Clear consoles button.

Clear consoles

By default, MeCoGUI selects the default simulator for the model indicated by pLinguaCore. A different simulation can be selected by clicking on the Simulators button.

Select simulator

Also, a machine-readable specification of the P system can be generated. This is intended for external simulators not integrated in pLinguaCore. For this, click Output formats and select the desired format for the specification.

Select output format

To simulate the system using the selected pLinguaCore simulator, use the following buttons:

  • Take step runs a single simulation step.
  • Simulate runs as many simulation cycles as indicated in the field Number of cycles. Each simulation cycle consists of as many steps as indicated in the field Steps per cycle.
  • Simulate all runs as many simulations as indicated in the field Number of simulations. Each simulation consists of as many simulation cycles as indicated in the field Number of cycles.

Simulation buttons

During simulation, the current and previous configurations of the system are displayed in the Info console tab.

Simulation information

During simulation or when the simulation is finished, the simulation results can be saved in CSV format on the selected file clicking on File>Save Results.

Save simulation results

The button Translate results will enable processing of simulation result files in future releases. It is currently in alpha version.

This software is available under the GNU General Public License (GPL) version 3.0.

About

A minimalistic interface for pLinguaCore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages