openlcb / OpenLCB_Java

A git-managed copy of the SVN-based Java prototype implementation of OpenLCB. This implementation operates inside JMRI.
6 stars 9 forks source link

Decodes traction request and reply messages for the monitor window #195

Closed balazsracz closed 2 years ago

balazsracz commented 2 years ago

This PR adds toString() methods to the TractionControlRequest and TractionControlReply messages. These tostring methods are used by the OpenLCB/LCC monitor log in JMRI. The decoding interprets the message command, subcommand and renders the arguments in text form.

Adds unit tests for untested parts of the traction messages, including creators and accessors. Adds a few missing details from the TractionWM to the traction request/reply classes.

Misc supporting changes: