C# Класс CommonLib.TrackSwitch

Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Switch ( ) : void

Changes the state of the switch

TrackSwitch ( ) : System

Empty constructor for serialization

TrackSwitch ( string name, string controllerID, TrackBlock trunk, TrackBlock branchClosed, TrackBlock branchOpen ) : System

Primary constructor with initial state

The TrackBlock that you pass as trunk should be connected to Branch The TrackBlock that you pass as branch1 should be connected to Trunk1 The TrackBlock that you pass as branch2 should be connected to Trunk2

Описание методов

Switch() публичный Метод

Changes the state of the switch
public Switch ( ) : void
Результат void

TrackSwitch() публичный Метод

Empty constructor for serialization
public TrackSwitch ( ) : System
Результат System

TrackSwitch() публичный Метод

Primary constructor with initial state
The TrackBlock that you pass as trunk should be connected to Branch The TrackBlock that you pass as branch1 should be connected to Trunk1 The TrackBlock that you pass as branch2 should be connected to Trunk2
public TrackSwitch ( string name, string controllerID, TrackBlock trunk, TrackBlock branchClosed, TrackBlock branchOpen ) : System
name string Track switch name
controllerID string ID of the TrackController assigned to the switch
trunk TrackBlock the trunk of the switch
branchClosed TrackBlock
branchOpen TrackBlock
Результат System