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