C# Класс TrainNotifier.Service.TrainMovementRepository

Наследование: DbRepository
Показать файл Открыть проект

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

Метод Описание
CallingAtLocation ( string stanox, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
CallingAtStation ( string crsCode, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
CallingBetweenLocations ( string fromStanox, string toStanox, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
CallingBetweenStations ( string fromCrs, string toCrs, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
GetActivatedTrainMovementByHeadcodeAndStop ( string headcode, System.DateTime date, string stanox ) : CachedTrainDetails

Get an activated train id that calls at the given location

GetTrainMovementByHeadcode ( string headcode, DateTime date ) : IEnumerable
GetTrainMovementByHeadcodeAndLocation ( string headcode, string crsCode, string platform ) : TrainMovementLink
GetTrainMovementById ( string trainUid, DateTime date ) : TrainMovementResult
NearestTrains ( double lat, double lon, int limit ) : IEnumerable
StartingAtLocation ( string stanox, DateTime startDate = null, DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
StartingAtStation ( string crsCode, DateTime startDate = null, DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
TerminatingAtLocation ( string stanox, DateTime startDate, DateTime endDate, string atocCode = null, PowerType powerType = null ) : IEnumerable
TerminatingAtStation ( string crsCode, DateTime startDate, DateTime endDate, string atocCode = null, PowerType powerType = null ) : IEnumerable

Приватные методы

Метод Описание
CallingAt ( IEnumerable tiplocs, System.DateTime startDate, System.DateTime endDate, string atocCode, PowerType powerType ) : IEnumerable
CallingBetween ( IEnumerable tiplocsFrom, IEnumerable tiplocsTo, System.DateTime startDate, System.DateTime endDate, string atocCode, PowerType powerType ) : IEnumerable
GetActualSchedule ( IEnumerable scheduleIds, System.DateTime startDate, System.DateTime endDate ) : IEnumerable
GetActualStops ( DbConnection connection, IEnumerable liveTrainIds ) : IEnumerable
GetCallingAtSchedules ( IEnumerable tiplocs, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetCallingBetweenSchedules ( IEnumerable tiplocsFrom, IEnumerable tiplocsTo, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetCancellations ( IEnumerable trainIds, DbConnection connection ) : IEnumerable
GetChangeOfOrigins ( IEnumerable trainIds, DbConnection connection ) : IEnumerable
GetDistinctSchedules ( IEnumerable schedules, System.DateTime date, string atocCode, PowerType powerType ) : IEnumerable
GetMatchingSchedules ( IEnumerable schedules, System.DateTime date, string atocCode, PowerType powerType ) : IEnumerable

this will pick up cancelled schedules which dont have any stops

GetReinstatements ( IEnumerable trainIds, DbConnection connection ) : IEnumerable
GetRunningAtSchedules ( IEnumerable tiplocs, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetRunningCallingBetweenSchedules ( IEnumerable tiplocsFrom, IEnumerable tiplocsTo, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetRunningStartingAtSchedules ( IEnumerable tiplocs, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetRunningTerminatingAtSchedules ( IEnumerable tiplocs, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetRunningTrainSchedules ( IEnumerable schedules, System.DateTime date ) : IEnumerable
GetSchedules ( IEnumerable scheduleIds, System.DateTime date ) : IEnumerable
GetStartingAtSchedules ( IEnumerable tiplocs, System.DateTime date, System.TimeSpan startTime, System.TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetStopsForSchedules ( DbConnection connection, IEnumerable scheduleIds ) : IEnumerable
GetTerminatingAtSchedules ( IEnumerable tiplocs, DateTime date, TimeSpan startTime, TimeSpan endTime, string atocCode, PowerType powerType ) : IEnumerable
GetTmSteps ( Guid trainId, DbConnection dbConnection ) : IEnumerable
GetTrainMovementById ( string trainId ) : TrainMovementLink
StartingAt ( IEnumerable tiplocs, DateTime startDate, DateTime endDate, string atocCode, PowerType powerType ) : IEnumerable
TerminatingAt ( IEnumerable tiplocs, DateTime startDate, DateTime endDate, string atocCode, PowerType powerType ) : IEnumerable

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

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

public CallingAtLocation ( string stanox, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
stanox string
startDate System.DateTime
endDate System.DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

public CallingAtStation ( string crsCode, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
crsCode string
startDate System.DateTime
endDate System.DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

public CallingBetweenLocations ( string fromStanox, string toStanox, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
fromStanox string
toStanox string
startDate System.DateTime
endDate System.DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

public CallingBetweenStations ( string fromCrs, string toCrs, System.DateTime startDate = null, System.DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
fromCrs string
toCrs string
startDate System.DateTime
endDate System.DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

Get an activated train id that calls at the given location
public GetActivatedTrainMovementByHeadcodeAndStop ( string headcode, System.DateTime date, string stanox ) : CachedTrainDetails
headcode string headcode of train
date System.DateTime date train started on
stanox string location called at
Результат TrainNotifier.Common.Model.TDCache.CachedTrainDetails

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

public GetTrainMovementByHeadcode ( string headcode, DateTime date ) : IEnumerable
headcode string
date DateTime
Результат IEnumerable

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

public GetTrainMovementByHeadcodeAndLocation ( string headcode, string crsCode, string platform ) : TrainMovementLink
headcode string
crsCode string
platform string
Результат TrainMovementLink

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

public GetTrainMovementById ( string trainUid, DateTime date ) : TrainMovementResult
trainUid string
date DateTime
Результат TrainMovementResult

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

public NearestTrains ( double lat, double lon, int limit ) : IEnumerable
lat double
lon double
limit int
Результат IEnumerable

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

public StartingAtLocation ( string stanox, DateTime startDate = null, DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
stanox string
startDate DateTime
endDate DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

public StartingAtStation ( string crsCode, DateTime startDate = null, DateTime endDate = null, string atocCode = null, PowerType powerType = null ) : IEnumerable
crsCode string
startDate DateTime
endDate DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

public TerminatingAtLocation ( string stanox, DateTime startDate, DateTime endDate, string atocCode = null, PowerType powerType = null ) : IEnumerable
stanox string
startDate DateTime
endDate DateTime
atocCode string
powerType PowerType
Результат IEnumerable

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

public TerminatingAtStation ( string crsCode, DateTime startDate, DateTime endDate, string atocCode = null, PowerType powerType = null ) : IEnumerable
crsCode string
startDate DateTime
endDate DateTime
atocCode string
powerType PowerType
Результат IEnumerable