Tiny: Support if Value is greatest, Interceptor if Threat is greatest, Guardian if Fortitude is greatest
Small: Support if Value is greatest, Assault if Threat is greatest, Escort if Fortitude is greatest
Medium: Support if Value is greatest, Assault if Threat is greatest, Escort if Fortitude is greatest
Large: Support if Value is greatest, Capital if Threat is greatest, Escort if Fortitude is greatest
Huge: Support if Value is greatest, otherwise Capital
And, of course, you can override the role designation in the ship designer.