public void Visit(Track visitee) { if (visitee.Next is IncomingSwitch) { IncomingSwitch myIncomingSwitch = (IncomingSwitch)visitee.Next; objectToRepresent = myIncomingSwitch.UpTrack.Equals(visitee) ? "═╗ " : "═╝ "; } else if (visitee.Previous is OutgoingSwitch) { OutgoingSwitch myoOutgoingSwitch = (OutgoingSwitch)visitee.Previous; objectToRepresent = myoOutgoingSwitch.UpTrack.Equals(visitee) ? " ╔═" : " ╚═"; } else { if (visitee.IsCorner) { objectToRepresent = "═╣ "; } else { if (visitee.IsVertical) { objectToRepresent = " ║ "; } else { objectToRepresent = "═══"; } } } }
public void Visit(IncomingSwitch visitee) { if (visitee.gateUp) { objectToRepresent = visitee.Number + "╚═"; } else { objectToRepresent = visitee.Number + "╔═"; } }