Introduction

Software to be build is to compare data from independent satellite systems. As fighter jets traverse airspace, each system determines its identity, recording the name of the jet type or an equivalent letter or number abbreviation. For data collected over time, the simulation software must ascertain whether systems agree on identification and if so, whether contrasting the data by single or multiple processors would be more efficient.

This article begins with a proof of concept in Scala 2.12. A small program with function taking generic collection type parameters verifies the basic strategy. The actual software is written in 2.13, in which generic collection types – those inheriting the GenTraversable hierarchy – have been deprecated [1]. The parallel package is also gone but can be brought back [2].

You will see in the actual software simulation system the following: a rewrite of the ‘corresponds’ function defined in the collection hierarchy; custom methods for timing both sequential and parallel algorithms; and basic statistical readouts of results.

For this article you need background in the Scala collections – at least the sequential collections.

The 2.12 program and full system code are available here: https://github.com/zironsys/sequential_parallel

#java #tutorial #scala #scala 2.13

A Simulation Using Sequential and Parallel Collections in Scala 2.13
1.30 GEEK