Skip to content

A Language for the Domain

Engineering on a NATO coalition image and video library, defence-grade: a domain-specific query language built to an international standard, a full-stack platform from a Swing screen to a CORBA server, geospatial and machine-learning work on the data, and test-first discipline raised into an auditable standard.

UTC Aerospace Systems built an image and video library platform used by several NATO coalition countries, and this was engineering on it across the full release lifecycle, in a defence-grade environment. The stack ran from a Java Swing operator interface on Linux, through a Java EE and CORBA enterprise server, down to the data models beneath. The most unusual piece of the work, though, was not integrating those layers. It was building a language.

JavaCORBAANTLRPostgreSQLC++

A language for the domain

Coalition users needed to query the library in the terms the domain used, and there was a new international standard for how those queries should be expressed. Rather than force that through a general-purpose interface, the work was to build a domain-specific query language to the standard: a grammar, a parser generated with ANTLR, and the semantics behind it that gave the language meaning against the platform data. Designing a language (its shape, its rules, and how it turns text into something a system can execute) is a distinct discipline from wiring services together, and a rare kind of work to be handed.

A domain-specific query language, from grammar to executionA grammar, written to a new international standard, sits at the top and is generated into a parser with ANTLR. A query written in the domain’s standard terms flows left to right through the parser into a parse tree, then through the semantics that give it meaning against the platform data, and finally runs against the library.Grammarto the international standardANTLR generatesQueryin standard termsParser(ANTLR)Parse treeSemanticsmeaning vs dataRunson the libraryA language, not a general-purpose interface bent to fit.
A domain-specific query language built to a new international standard: a grammar, generated into an ANTLR parser, turns a query written in the domain’s terms into a parse tree; semantics then give it meaning against the platform data and run it against the library.

Screen to store

The rest of the platform reached from the screen to the store. A substantial Java Swing interface, running on Linux, gave operators their way in. Behind it sat the Java EE and CORBA enterprise server. Leading the international integration of RESTful and SOAP web services over CORBA meant the coalition’s many systems could build against one common server rather than a tangle of point-to-point links. Underneath all of it sat a deployable middleware framework API, designed single-handedly with object-oriented analysis and design and written test-first, giving the platform services a reusable foundation to stand on.

The full-stack platform, from Swing screen to PostgreSQL storeA vertical stack: at the top, a Java Swing operator interface running on Linux; beneath it, a Java EE and CORBA enterprise server exposing RESTful and SOAP web services over CORBA; below that, the data models and a PostgreSQL store. Underneath the whole stack sits a deployable middleware framework, built single-handedly with object-oriented analysis and design and test-first, giving the services a reusable foundation.screenstoreJava Swing UIoperators, on LinuxJava EE · CORBA enterprise serverRESTful + SOAP services over CORBAData modelsPostgreSQL storeDeployable middleware frameworkOOAD, test-first, a reusable foundation
The platform reached from screen to store: a Java Swing operator interface on Linux, over a Java EE and CORBA enterprise server exposing REST and SOAP services, down to the data models and a PostgreSQL store, all standing on a solo-built, test-first deployable middleware framework.

Accuracy is the point

A library like this is only as valuable as its data is accurate. Geospatial algorithms, combined with machine-learning techniques, went to exactly that: improving the accuracy and the performance of the platform data, so what it served could be relied on. On a system whose whole purpose is trustworthy data, that work went straight to the point of it.

Test-first, made auditable

The interface code between the layers had to be precise, so it was written test-first. That began as a personal practice and did not stay one. Championing test-driven development across the team through training sessions, then embedding it into the ISO 9001 quality process documentation, turned it into a team standard, one a defence programme could actually audit. In a defence-grade environment, discipline is not overhead on the engineering; it is what makes the engineering trustworthy.

On the ground

None of it stayed behind a desk. The work reached the coalition operators during rollout, and a hands-on session trained the coalition air forces in Linux and in using the platform. Building software for people and then standing in a room to teach them is a fast way to learn what the software is really for.

A wide brief

It is a wide brief for one role: a domain-specific language to an international standard, a full-stack platform from a Swing interface to a CORBA server, a reusable middleware framework, geospatial and machine-learning work on the data, and the test discipline to hold all of it to a defence-grade bar. The specifics of what the platform served stay where they belong. The engineering, and the range of it, is the part worth showing.

The geospatial work here is one thread of a wider capability: it runs, more centrally, through the patented area-finder at ShefDigs and the point-in-polygon charging zones at TfL.