Пример #1
0
 override public bool equalsEntity(models.Entity entity)
 {
     if (entity.GetType() != typeof(models.Task))
     {
         return(false);
     }
     return(this.Name == ((models.Task)entity).Name);
 }
Пример #2
0
 override public bool equalsEntity(models.Entity entity)
 {
     if (entity.GetType() != typeof(models.LearningScenario))
     {
         return(false);
     }
     return(this.Name == ((models.LearningScenario)entity).Name);
 }
        override public bool equalsEntity(models.Entity entity)
        {
            if (entity.GetType() != typeof(models.LearnedSolver))
            {
                return(false);
            }
            LearnedSolver solver = (LearnedSolver)entity;

            return(this.TaskSolver.ID == solver.TaskSolverID && this.Selection.ID == solver.SelectionID && this.scenario.ID == solver.LearningScenarioID);
        }