Você está na página 1de 4

Topologa

'Nilgen Velazco
'Y00282080
Public Class bus_topo
Private Sub bus_topo_Load(sender As System.Object, e As System.EventArgs) Handles
MyBase.Load
End Sub
Private Sub Form1_Paint(ByVal sender As Object, ByVal e
System.Windows.Forms.PaintEventArgs) Handles Me.Paint
'BUS START
'Comp1
e.Graphics.DrawLine(Pens.Red, 50, 80, 50, 90) 'line
e.Graphics.DrawLine(Pens.Red, 50, 80, 85, 80) 'line
e.Graphics.DrawLine(Pens.Red, 55, 60, 55, 80) 'line
e.Graphics.DrawLine(Pens.Red, 55, 60, 80, 60) 'line
e.Graphics.DrawLine(Pens.Red, 50, 90, 85, 90) 'line
e.Graphics.DrawLine(Pens.Red, 60, 65, 60, 75) 'line
e.Graphics.DrawLine(Pens.Red, 60, 65, 75, 65) 'line
e.Graphics.DrawLine(Pens.Red, 60, 75, 75, 75) 'line
e.Graphics.DrawLine(Pens.Red, 75, 65, 75, 75) 'line
e.Graphics.DrawLine(Pens.Red, 80, 60, 80, 80) 'line
e.Graphics.DrawLine(Pens.Red, 85, 80, 85, 90) 'line
'Comp2
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,

110,
110,
110,
115,
115,
120,
120,

80,
80,
90,
60,
60,
65,
65,

110,
145,
145,
115,
140,
120,
135,

90)
80)
90)
80)
60)
75)
65)

As

1
2
3
4
5
6
7
8
9
10
11

'line
'line
'line
'line
'line
'line
'line

1
2
5
3
4
6
7

1|Page

Topologa

e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,

120,
135,
140,
145,

75,
65,
60,
80,

135,
135,
140,
145,

75)
75)
80)
90)

'line
'line
'line
'line

8
9
10
11

'Comp3
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,

170,
170,
170,
175,
175,
180,
180,
180,
195,
200,
205,

80,
80,
90,
60,
60,
65,
65,
75,
65,
60,
80,

170,
205,
205,
175,
200,
180,
195,
195,
195,
200,
205,

90)
80)
90)
80)
60)
75)
65)
75)
75)
80)
90)

'line
'line
'line
'line
'line
'line
'line
'line
'line
'line
'line

1
2
5
3
4
6
7
8
9
10
11

'Server
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,
e.Graphics.DrawLine(Pens.Red,

115,
115,
115,
150,
130,
130,

140,
140,
185,
140,
145,
150,

'Connections
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,

115,
150,
150,
150,
145,
145,

185)
140)
185)
185)
145)
150)

'line
'line
'line
'line
'in
'in

1
2
3
4

65, 90, 65, 120) 'L1


125, 90, 125, 120) 'L2
185, 90, 185, 120) 'L3
25, 120, 225, 120) 'L4
125, 120, 125, 140) 'L5

'BUS END
'RING START
e.Graphics.DrawEllipse(Pens.Black, 300, 50, 200, 200) 'Ring
'CompW
e.Graphics.FillRectangle(Brushes.CadetBlue, 290, 100, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 290, 100, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 295, 108, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 295, 108, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 283, 135, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 283, 135, 55, 15) 'base
'CompN
e.Graphics.FillRectangle(Brushes.CadetBlue, 380, 30, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 380, 30, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 385, 38, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 385, 38, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 373, 65, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 373, 65, 55, 15) 'base
'CompS
e.Graphics.FillRectangle(Brushes.CadetBlue, 380, 200, 40, 35) 'fout

2|Page

Topologa

e.Graphics.DrawRectangle(Pens.Red, 380, 200, 40, 35) 'out


e.Graphics.FillRectangle(Brushes.Black, 385, 208, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 385, 208, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 373, 235, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 373, 235, 55, 15) 'base
'CompE
e.Graphics.FillRectangle(Brushes.CadetBlue, 480, 100, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 480, 100, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 485, 108, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 485, 108, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 473, 135, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 473, 135, 55, 15) 'base
'RING END
'STAR START
'Connections
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,
e.Graphics.DrawLine(Pens.Black,

750,
630,
830,
680,
820,

20, 750, 130) 'L1


90, 750, 130) 'L2
90, 750, 130) 'L3
250, 750, 130) 'L4
250, 750, 130) 'L5

'CompCENTER
e.Graphics.FillRectangle(Brushes.DeepSkyBlue, 730, 120, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 730, 120, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Chocolate, 735, 128, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 735, 128, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.DeepSkyBlue, 723, 155, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 723, 155, 55, 15) 'base
'CompN
e.Graphics.FillRectangle(Brushes.BlueViolet, 730, 20, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 730, 20, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 735, 28, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 735, 28, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 723, 55, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 723, 55, 55, 15) 'base
'CompNW
e.Graphics.FillRectangle(Brushes.BlueViolet, 630, 75, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 630, 75, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 635, 83, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 635, 83, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 623, 110, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 623, 110, 55, 15) 'base
'CompNE
e.Graphics.FillRectangle(Brushes.BlueViolet, 820, 75, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 820, 75, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 825, 83, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 825, 83, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 813, 110, 55, 15) 'fbase

3|Page

Topologa

e.Graphics.DrawRectangle(Pens.Red, 813, 110, 55, 15) 'base


'CompSW
e.Graphics.FillRectangle(Brushes.BlueViolet, 650, 220, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 650, 220, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 655, 228, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 655, 228, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 643, 255, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 643, 255, 55, 15) 'base
'CompSE
e.Graphics.FillRectangle(Brushes.BlueViolet, 800, 220, 40, 35) 'fout
e.Graphics.DrawRectangle(Pens.Red, 800, 220, 40, 35) 'out
e.Graphics.FillRectangle(Brushes.Black, 805, 228, 30, 20) 'fin
e.Graphics.DrawRectangle(Pens.Red, 805, 228, 30, 20) 'in
e.Graphics.FillRectangle(Brushes.CadetBlue, 793, 255, 55, 15) 'fbase
e.Graphics.DrawRectangle(Pens.Red, 793, 255, 55, 15) 'base
'STAR END
End Sub
End Class

4|Page

Você também pode gostar