public static IEnumerable <ObstacleRefinement> ParentRefinements(this Obstacle obstacle) { return(from refinement in obstacle.model.ObstacleRefinements() where refinement.SubobstacleIdentifiers.Any(x => x.Identifier == obstacle.Identifier) select refinement); }
public static IEnumerable <Obstacle> Obstacles(this Obstacle o) { return(o.Refinements().SelectMany(x => x.SubObstacles().SelectMany(y => y.Obstacles())) .Union(o.Resolutions().SelectMany(x => x.Obstacles()))); }
public static ISatisfactionRate LatestEPS(this Obstacle obstacle) { return(obstacle.model.satisfactionRateRepository.GetObstacleSatisfactionRates(obstacle.Identifier).FirstOrDefault()); }
public static IEnumerable <ObstacleRefinement> Refinements(this Obstacle obstacle) { return(from refinement in obstacle.model.ObstacleRefinements() where refinement.ParentObstacleIdentifier == obstacle.Identifier select refinement); }
public static IEnumerable <Resolution> Resolutions(this Obstacle obstacle) { return(from resolution in obstacle.model.Resolutions() where resolution.ObstacleIdentifier == obstacle.Identifier select resolution); }
public static IEnumerable <Obstruction> Obstructions(this Obstacle obstacle) { return(from obstruction in obstacle.model.Obstructions() where obstruction.ObstacleIdentifier == obstacle.Identifier select obstruction); }
public void SetObstacle(Obstacle obstacle) { this.ObstacleIdentifier = obstacle.Identifier; }
public void SetObstacle(Obstacle obstacle) { ResolvedObstacleIdentifier = obstacle.Identifier; }
public void Add(Obstacle obstacle, IRefineeParameter parameter) { this.SubobstacleIdentifiers.Add(new ObstacleRefinee(obstacle.Identifier, parameter)); }
public void Add(Obstacle obstacle) { this.SubobstacleIdentifiers.Add(new ObstacleRefinee(obstacle.Identifier)); }
public void SetParentObstacle(Obstacle element) { this.ParentObstacleIdentifier = element.Identifier; }
public ObstacleRefinement(KAOSModel model, Obstacle obstacle) : this(model) { SubobstacleIdentifiers.Add(new ObstacleRefinee(obstacle.Identifier)); }
public void Add(Obstacle v) { this.obstacleRepository.Add(v); }