How Are Farm Animals Classified Based On Their Feeding Habits?

How Are Farm Animals Classified Based On Their Feeding Habits?