C# Class CommonLib.TrackSwitch

Datei anzeigen Open project: johnselker/Bazinga1186

Private Properties

Property Type Description

Public Methods

Method Description
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

Method Details

Switch() public method

Changes the state of the switch
public Switch ( ) : void
return void

TrackSwitch() public method

Empty constructor for serialization
public TrackSwitch ( ) : System
return System

TrackSwitch() public method

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
return System