Example #1
0
        public override bool TaskTypesMatch(BasicTask otherTask)
        {
            if (otherTask is DoseAdministrationTask)
            {
                return(true);
            }

            return(false);
        }
Example #2
0
        /// <summary>
        /// Method to determine if this task matches another BasicTask
        /// </summary>
        /// <param name="otherTask">The task to compare with</param>
        /// <returns>True if otherTask is ArivalTask</returns>
        public override bool TaskTypesMatch(BasicTask otherTask)
        {
            if (otherTask is ArrivalTask)
            {
                return(true);
            }

            return(false);
        }
Example #3
0
 public override bool TaskTypesMatch(BasicTask otherTask)
 {
     if (otherTask is ScanTask)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #4
0
 public override bool TaskTypesMatch(BasicTask otherTask)
 {
     if (otherTask is StandardTask)
     {
         if (((StandardTask)otherTask).TaskType.Name == TaskType.Name)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Example #5
0
 /// <summary>
 /// Returns true if tasks match
 /// </summary>
 /// <param name="otherTask"></param>
 /// <returns></returns>
 public virtual bool TaskTypesMatch(BasicTask otherTask)
 {
     return(false);
 }