C# Класс UserInterface_Mockup_ICT4Reals.Remise.Tram

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddTram ( int tramId, int spoorId, int typeId, int aanwezigOpSpoor ) : bool

adds a tram to the database with the provided variables

DeleteTram ( int tramId ) : bool

MoveTram ( int tramId, int railId, int statusID ) : bool

Tram ( int id, string type, Rail rail, User driver, int status, bool onRail ) : System

Creation of a new tram

UpdateTramStatus ( int tramID, int statusID ) : bool

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

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

adds a tram to the database with the provided variables
public AddTram ( int tramId, int spoorId, int typeId, int aanwezigOpSpoor ) : bool
tramId int ID of the new tram
spoorId int ID of the rail the tram is on
typeId int ID of the type of the tram
aanwezigOpSpoor int
Результат bool

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

public DeleteTram ( int tramId ) : bool
tramId int Give the ID of the tram you want to delete
Результат bool

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

public MoveTram ( int tramId, int railId, int statusID ) : bool
tramId int ID of the tram
railId int ID of the rail it's moved to
statusID int
Результат bool

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

Creation of a new tram
public Tram ( int id, string type, Rail rail, User driver, int status, bool onRail ) : System
id int id of the tram
type string tram type
rail Rail rail on which the tram should be placed on
driver UserInterface_Mockup_ICT4Reals.AdminSystem.User the driver of the tram
status int 1= OK 2= Dirty 3= Defect 4= DirtyAndDefect
onRail bool
Результат System

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

public UpdateTramStatus ( int tramID, int statusID ) : bool
tramID int id of the tram you want to update
statusID int 1= OK 2= Dirty 3= Defect 4= DirtyAndDefect
Результат bool