コード例 #1
0
 public void Add(Obstruction obstruction)
 {
     Obstructions.Add (obstruction);
 }
コード例 #2
0
ファイル: DotExport.cs プロジェクト: ancailliau/KAOSTools
 public void ExportObstruction(Goal g, Obstruction o)
 {
     writer.WriteLine (@"""{0}"" -> ""{1}"" [arrowtail=onormaltee];",
                       g.Identifier,
                       o.Obstacle ().Identifier);
 }
コード例 #3
0
        protected void Render(Obstruction obstruction)
        {
            if (!shapes.ContainsKey (obstruction.ObstacleIdentifier))
                return;

            if (!shapes.ContainsKey (obstruction.ObstructedGoalIdentifier))
                return;

            var obstacleGraphic = shapes [obstruction.ObstacleIdentifier].First ();
            var goalGraphic = shapes [obstruction.ObstructedGoalIdentifier].First ();

            var topArrow = GetSharpBackCrossArrow (obstacleGraphic, goalGraphic);
            Add (obstruction.Identifier, topArrow);
        }