Cedric is sexually attracted to his middle-school English te…

Cedric is sexually attracted to his middle-school English teacher.  He doesn’t act on his feelings however, because he realizes that it is unrealistic that his teacher would respond positively to his advances.  According to Sigmund Freud, which part of the personality would be responsible for Cedric’s restraint?