Controlling the engagement or disengagement of prime movers, e.g. for transition between prime movers