Uses of Class
com.nnamo.models.StopModel
Packages that use StopModel
Package
Description
-
Uses of StopModel in com.nnamo.controllers
Methods in com.nnamo.controllers with parameters of type StopModelModifier and TypeMethodDescriptionstatic void
UIController.handleStopSelection
(StopModel stop, UserModel user, org.jxmapviewer.viewer.GeoPosition position, RealtimeGtfsService realtimeService, MainFrame mainFrame, DatabaseService db) It defines the behaviour of when the user clicks on a stopstatic void
UIController.updateStopPanel
(StopModel stop, List<StopTimeModel> stopTimes, List<RealtimeStopUpdate> realtimeUpdates, MainFrame mainFrame, DatabaseService db) Method parameters in com.nnamo.controllers with type arguments of type StopModelModifier and TypeMethodDescriptionstatic org.jxmapviewer.viewer.GeoPosition
MapController.calculateBarycenter
(List<StopModel> stopList) Calculate the geographical barycenter of a list of stops.static int
MapController.calculateZoomLevel
(List<StopModel> stopList) Calculate an appropriate zoom level based on the geographical spread of a list of stops.static void
MapController.renderRoutesVehicles
(List<StopModel> stopModels, RealtimeGtfsService realtimeService, MainFrame mainFrame, DatabaseService db, String routeId, Direction direction) -
Uses of StopModel in com.nnamo.models
Methods in com.nnamo.models that return StopModelModifier and TypeMethodDescriptionFavoriteStopModel.getStop()
Gets the stop marked as favorite.StopTimeModel.getStop()
Gets the stop associated with this stop time.Constructors in com.nnamo.models with parameters of type StopModelModifierConstructorDescriptionFavoriteStopModel
(UserModel user, StopModel stop) Constructs a FavoriteStopModel with the specified user and stop.StopTimeModel
(TripModel trip, StopModel stop, int arrival_time, int departure_time) Constructs a StopTimeModel with the specified trip, stop, arrival time, and departure time. -
Uses of StopModel in com.nnamo.services
Methods in com.nnamo.services that return StopModelModifier and TypeMethodDescriptionDatabaseService.getStopById
(String id) Returns a stop by its IDMethods in com.nnamo.services that return types with arguments of type StopModelModifier and TypeMethodDescriptionDatabaseService.getAllStops()
Returns every stop instance from the databaseDatabaseService.getFavoriteStops
(int userId) Get user's favorite stopsDatabaseService.getFavoriteStops
(UserModel user) Get user's favorite stopsDatabaseService.getFavoriteStopsByName
(int userId, String searchTerm) Get user's favorite stops.DatabaseService.getOrderedStopsForRoute
(String routeId, Direction direction) Get ordered stops for a route in a specific directionDatabaseService.getStopsByName
(String searchTerm) Fuzzy search stops by its name.Methods in com.nnamo.services with parameters of type StopModelModifier and TypeMethodDescriptionvoid
DatabaseService.addFavStop
(UserModel user, StopModel stop) Add favorite stop to a user's favorite stops list -
Uses of StopModel in com.nnamo.view.custompanels
Methods in com.nnamo.view.custompanels with parameters of type StopModelModifier and TypeMethodDescriptionvoid
LeftPanel.updateFavStopTable
(StopModel stop, UpdateMode updateMode) Updates the favorite stop table in the prefer panel with the specified stop and update mode.void
PreferPanel.updateFavStopTable
(StopModel stop, UpdateMode updateMode) Method parameters in com.nnamo.view.custompanels with type arguments of type StopModelModifier and TypeMethodDescriptionvoid
LeftPanel.initPreferPanelPreferTable
(List<StopModel> stops, List<RouteDirection> routes) Initializes the prefer panel's table with the provided stops and routes.void
LeftPanel.initPreferTable
(List<StopModel> favoriteStops, List<RouteDirection> favoriteRoutes) Initializes the prefer panel's table with the provided favorite stops and routes.void
PreferPanel.initPreferTable
(List<StopModel> stops, List<RouteDirection> directedRoutes) void
LeftPanel.renderSearchPanel
(List<StopModel> stops, List<RouteDirection> routes) Updates the search panel with the provided list of stops and routes.void
MapPanel.renderStops
(List<StopModel> stops) Renders the provided list ofStopModel
as waypoints on the map.void
MapPanel.renderStopsRoute
(List<StopModel> stops) Renders the provided list ofStopModel
as a route on the map, updating the route overlay and painter.void
SearchPanel.updateView
(List<StopModel> stopModels, List<RouteDirection> routeModels) Updates the tables with the provided lists ofStopModel
andRouteDirection
. -
Uses of StopModel in com.nnamo.view.frame
Methods in com.nnamo.view.frame with parameters of type StopModelModifier and TypeMethodDescriptionvoid
MainFrame.updateFavStopTable
(StopModel stop, UpdateMode updateMode) Updates the favorite stops table in the left panel.Method parameters in com.nnamo.view.frame with type arguments of type StopModelModifier and TypeMethodDescriptionvoid
MainFrame.initLeftPanelPreferPanelPreferTable
(List<StopModel> stops, List<RouteDirection> routes) Initializes the favorites table in the left panel's prefer panel.void
MainFrame.initPreferPanelTable
(List<StopModel> favoriteStops, List<RouteDirection> favoriteRoutes) Initializes the favorites table in the prefer panel with the provided stops and routes.void
MainFrame.renderRouteLines
(List<StopModel> stopModels, List<com.google.transit.realtime.GtfsRealtime.VehiclePosition> realtimePositions, List<StaticVehiclePosition> staticPositions, String routeId, org.jxmapviewer.viewer.GeoPosition geoPosition, int zoomLevel) Renders route lines and vehicle positions on the map panel, and updates the current route and map position.void
MainFrame.renderSearchPanel
(List<StopModel> stops, List<RouteDirection> routes) Renders the search panel with the provided stops and routes.void
MainFrame.renderStops
(List<StopModel> stops) Renders the provided list of stops on the map panel. -
Uses of StopModel in com.nnamo.view.painter
Methods in com.nnamo.view.painter that return types with arguments of type StopModelMethod parameters in com.nnamo.view.painter with type arguments of type StopModel