The method getPriority send in class Task from TimeDriven