Automata

Elias Kelta, 4BHIF

screenshot

Usage Guide

Overview

This application allows users to create, manipulate, and visualize automata. The main functionalities include adding nodes and edges, deleting nodes, moving nodes, and exporting the automaton as PNG or PDF.

User Interface Elements

Drawing Panel

Buttons

Drawing Modes

How to Use

  1. Adding Nodes:
    • Select Node Mode or End Node Mode.
    • Click on the drawing panel to add a node at the clicked position.
  2. Adding Edges:
    • Select Edge Mode.
    • Click on the first node, then click on the second node.
    • Enter the transition symbols in the dialog that appears.
  3. Deleting Nodes:
    • Select Delete Mode.
    • Click on the node you want to delete.
  4. Moving Nodes:
    • Select Select Mode.
    • Click and hold on a node, then drag it to the desired position.
  5. Exporting Automaton:
    • Click on Export as PNG or Export as PDF and choose the file location.
  6. Printing Automaton:
    • Click on Print to open the print dialog and print the automaton.
  7. Generating Java Code:
    • Click on Generate Java Code to generate Java code for the current automaton.

Notes

Deployment/Installation

The deployment process is done via jpackage. It generates an installer file based on the provided type (I chose deb, since I'm using Ubuntu)

  1. Run mvn clean package
  2. Install the deb installer with sudo dpkg -i {installer.deb}
  3. Find out where it was installed with dpkg -L automata | less. (In my case it's at: /opt/automata/bin/automata)
  4. And now launch it: /opt/automata/bin/automata. The program should now open up.
  5. Optionally, you could add it to $PATH or create a Desktop entry.

Uninstall

To uninstall the program, run sudo dpkg -r automata