fixed function processing of SimulatedMfx Locomotives
refactoring