C# 클래스 TrolleyTracker.Controllers.AssignStopsToRoutes

파일 보기 프로젝트 열기: codeforgreenville/trolley-tracker-api-dot-net 1 사용 예제들

공개 메소드들

메소드 설명
UpdateRouteStops ( TrolleyTrackerContext db, int routeID, List shapePoints, List stops ) : void

Recalculate which routes the stops belong to, and the order. Call after any change to route or stops

UpdateStopsForAllRoutes ( ) : void
UpdateStopsForRoute ( TrolleyTrackerContext db, int routeID ) : void

비공개 메소드들

메소드 설명
AngleBetween3Points ( Coordinate A, Coordinate B, Coordinate C ) : double

Find the angle between stop and A-B segment. Used to ensure that stop is only used if it's on the right side of the route

FindDistanceToSegment ( Coordinate stopPosition, Coordinate p1, Coordinate p2, Coordinate &closest ) : double
RemovePreviousRouteStops ( TrolleyTrackerContext db, int routeID ) : void

메소드 상세

UpdateRouteStops() 공개 메소드

Recalculate which routes the stops belong to, and the order. Call after any change to route or stops
public UpdateRouteStops ( TrolleyTrackerContext db, int routeID, List shapePoints, List stops ) : void
db TrolleyTracker.Models.TrolleyTrackerContext
routeID int Route being recalculated
shapePoints List
stops List
리턴 void

UpdateStopsForAllRoutes() 공개 메소드

public UpdateStopsForAllRoutes ( ) : void
리턴 void

UpdateStopsForRoute() 공개 메소드

public UpdateStopsForRoute ( TrolleyTrackerContext db, int routeID ) : void
db TrolleyTracker.Models.TrolleyTrackerContext
routeID int
리턴 void