Task #0078: Trajectory base class implementation and tests.