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);
 }
예제 #2
0
 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);
 }
예제 #7
0
 public void SetObstacle(Obstacle obstacle)
 {
     this.ObstacleIdentifier = obstacle.Identifier;
 }
예제 #8
0
 public void SetObstacle(Obstacle obstacle)
 {
     ResolvedObstacleIdentifier = obstacle.Identifier;
 }
예제 #9
0
 public void Add(Obstacle obstacle, IRefineeParameter parameter)
 {
     this.SubobstacleIdentifiers.Add(new ObstacleRefinee(obstacle.Identifier, parameter));
 }
예제 #10
0
 public void Add(Obstacle obstacle)
 {
     this.SubobstacleIdentifiers.Add(new ObstacleRefinee(obstacle.Identifier));
 }
예제 #11
0
 public void SetParentObstacle(Obstacle element)
 {
     this.ParentObstacleIdentifier = element.Identifier;
 }
예제 #12
0
 public ObstacleRefinement(KAOSModel model, Obstacle obstacle) : this(model)
 {
     SubobstacleIdentifiers.Add(new ObstacleRefinee(obstacle.Identifier));
 }
예제 #13
0
 public void Add(Obstacle v)
 {
     this.obstacleRepository.Add(v);
 }