This project was developed in January, 2011. This is actually my first project that I created as a Java application. The main goal that I followed in this project was to exercise the Object Oriented Programming Paradigm and to see in practice some design patterns – KISS, Registry, Repository, Observer, Singleton. It is absolutely my own work.
Get itGeneral
Reads user input and translates it in and out to Morse code, using an external xml file to initialize the code table. The main goals, which were followed in the development, were the extensibility of the framework, process time scheduling and good hierarchy of the classes.
Introduction
The Morse Code is a method for transmission of messages using the interruption of permanent signal to long and short signals – conditionally called “slash” and “dot”. This method is named after its inventor – the American painter Samuel Morse, who developed it in 1835. The Morse alphabet is the first method to translate information over distance using radio transmitter and receiver. The purpose of this application is to translate text into Morse Code and backward code to text, as it is easy to define input and output points.
Process
The translating process is follows the steps:
- The information is fetched, using the defined input point. If Morse Code is being read, then it is translated into internal format.
- The information is encoded or decoded.
- To the external points is send the resulting information and they accordingly emit it.
Functionality
This system contains diverse functionality:
- The code table is read from external XML file, which makes the used table easy to modify and view.
- The system uses interesting internal method for keeping the codes and letters – using a double dictionary.
- The system uses internal format for the Morse alphabet, which makes it easier to transmit outside from the system. In this manner two formats for writing are implemented – with zeros and ones and with dashes and dots
- Input and output management was implemented. In future development UI for it is palned.
- Two kinds of input points – screen textarea and text file – both text and code enabled.
- Three kinds of output points – screen textarea and text file – both text and code enabled. Also a synchronized real-time code emitting radio button was added.
Functionality
The Morse Code Translator can change the following settings by the user:
- The Morse Code Table that is used
- The direction of translation – to encode or to decode
- Table Standard: International or Cyrillic
- Code writing format: Zeros and Ones, Dashes and Dotes