judge in charge of a Scottish sheriffdom with judicial, quasi-judicial, and administrative responsibilities