Exemplo n.º 1
0
 public void AddColumn(ISinglePointComponent aColumn)
 {
     if (aColumn == null)
     {
         throw new ArgumentNullException();
     }
     columns.Add(aColumn);
 }
Exemplo n.º 2
0
 public void RemoveColumn(Point columnPosition)
 {
     if (materials.GetColumns().Any(c => c.GetPosition().Equals(columnPosition)))
     {
         ISinglePointComponent toDelete = materials.GetColumns().First(c => c.GetPosition().Equals(columnPosition));
         materials.RemoveColumn(toDelete);
     }
 }
Exemplo n.º 3
0
 private bool PunctualComponentInRange(ISinglePointComponent newComponent)
 {
     return(PointInRange(newComponent.GetPosition()));
 }
Exemplo n.º 4
0
 public bool BelongsToAWall(ISinglePointComponent singlePointed)
 {
     return(materials.GetWalls().Any(wall => wall.DoesContainComponent(singlePointed)));
 }
Exemplo n.º 5
0
 public bool OccupiedPosition(ISinglePointComponent punctualComponent)
 {
     return(materials.GetOpenings().Any(op => op.GetPosition().Equals(punctualComponent.GetPosition())) ||
            materials.GetBeams().Any(bm => bm.GetPosition().Equals(punctualComponent.GetPosition())) ||
            materials.GetColumns().Any(cm => cm.GetPosition().Equals(punctualComponent.GetPosition())));
 }
Exemplo n.º 6
0
 public bool ContainsColumn(ISinglePointComponent aColumn)
 {
     return(columns.Contains(aColumn));
 }
Exemplo n.º 7
0
 public bool BelongsToEdge(ISinglePointComponent punctualComponent)
 {
     return(BelongsToEdge(punctualComponent.GetPosition()));
 }
Exemplo n.º 8
0
 public bool DoesContainComponent(ISinglePointComponent component)
 {
     return(DoesContainPoint(component.GetPosition()));
 }