Helper class to manipulate Route entities

Constructors

Properties

getAllArrivalSites: ((arState) => ARSite[]) = getAllArrivalSites

Type declaration

    • (arState): ARSite[]
    • get all arrival sites from all Routes if 2+ Routes use same departue site, only return it once

      Parameters

      Returns ARSite[]

getAllDepartureSites: ((arState) => ARSite[]) = getAllDepartureSites

Type declaration

    • (arState): ARSite[]
    • get all departures site from all Routes if 2+ Routes use same departue site, only return it once

      Parameters

      Returns ARSite[]

getAllRouteIds: ((arState) => string[]) = getAllRouteIds

Type declaration

    • (arState): string[]
    • get all RouteIds from referencePlanning

      Parameters

      Returns string[]

getAllVehicleRoutes: ((arState) => ARVehicleRoute[]) = getAllVehicleRoutes

Type declaration

getArrivalDate: ((routeId, arState) => Date) = getArrivalDate

Type declaration

    • (routeId, arState): Date
    • return arrival Date for given ARRoute id

      Parameters

      Returns Date

getArrivalSite: ((routeId, arState) => ARSite) = getArrivalSite

Type declaration

    • (routeId, arState): ARSite
    • return arrivalSite for given ARRoute id

      Parameters

      Returns ARSite

getById: ((routeId, arState) => ARRoute) = getById

Type declaration

getDepartureDate: ((routeId, arState) => Date) = getDepartureDate

Type declaration

    • (routeId, arState): Date
    • return departure Date for given ARRoute id

      Parameters

      Returns Date

getDepartureSite: ((routeId, arState) => ARSite) = getDepartureSite

Type declaration

    • (routeId, arState): ARSite
    • return departureSite for given ARRoute id

      Parameters

      Returns ARSite

getLinkedRouteIds: ((arState) => string[]) = getLinkedRouteIds

Type declaration

    • (arState): string[]
    • return all route ids with a linked mci Solution

      Parameters

      Returns string[]

getMCIUnresolvedRouteIds: ((arState) => string[]) = getMCIUnresolvedRouteIds

Type declaration

    • (arState): string[]
    • get all RouteIds from referencePlanning not yet mapped to an MCI job

      Parameters

      Returns string[]

getSitePoints: ((routeId, arState) => ARSitePoint[]) = getSitePoints

Type declaration

getStartDates: ((routeId, arState) => Date[]) = getStartDates

Type declaration

    • (routeId, arState): Date[]
    • get all startDates from routeId (one for each sitePoint except last one)

      Parameters

      Returns Date[]

getVehicleRoute: ((routeId, arState) => ARVehicleRoute) = getVehicleRoute

Type declaration

isARRoute: ((route) => route is ARRoute) = isARRoute

Type declaration

isARVehicleRoute: ((vr) => vr is ARVehicleRoute) = isARVehicleRoute

Type declaration

linkRouteIdWithMCIJob: ((routeId, mciJob, arState) => MCIRouteLink[]) = linkRouteIdWithMCIJob

Type declaration

    • (routeId, mciJob, arState): MCIRouteLink[]
    • link a routeId with an MCI job and return a new MCIRouteLink array

      Parameters

      Returns MCIRouteLink[]

      Updated MCIRouteLink array

toRouteLite: ((route) => ARRouteLite) = toRouteLite

Type declaration

toVehicleRoutesLite: ((vehicleRoute) => ARVehicleRouteLite) = toVehicleRoutesLite

Type declaration

updateMCIRouteLink: ((mciJob, arState) => MCIRouteLink[]) = updateMCIRouteLink

Type declaration

updateMCIRouteLinks: ((state, mptSolution) => MCIRouteLink[]) = updateMCIRouteLinks

Type declaration

updateReferencePlanning: ((state, mptSolution) => ARReferencePlanning) = updateReferencePlanning

Type declaration

Generated using TypeDoc