Метод | Описание | |
---|---|---|
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, |
Creation of a new tram
|
|
UpdateTramStatus ( int tramID, int statusID ) : bool |
|
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 |
public DeleteTram ( int tramId ) : bool | ||
tramId | int | Give the ID of the tram you want to delete |
Результат | bool |
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 |
public Tram ( int id, string type, |
||
id | int | id of the tram |
type | string | tram type |
rail | rail on which the tram should be placed on | |
driver | the driver of the tram | |
status | int | 1= OK 2= Dirty 3= Defect 4= DirtyAndDefect |
onRail | bool | |
Результат | System |
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 |