Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User
- ☐ credentials: UserCredentials
- actions: UserActions
- location: UserLocation
- ⚫ login(username, password): bool logout(): None
- ⚫ updateProfile(newDetails): None
- • searchForPath(criteria): Path
- • markFavoritePath(path): None
- • viewPathDetails(path): None
- • getRecommendedPaths(): List[Path> • findRestroom(): Restroom .findFoodPlace(): Food Place
- C) UserCredentials
- ☐ userID: int
- username: String
- □ password: String
- email: String
- ⚫ login(username, password): bool logout(): None
- ☐ age: int
- C) UserActions
- ☐ skiLevel: String
- ☐ preferredDifficulty: String favoritePaths: List[Path>
- ⚫ updateProfile(newDetails): None • searchForPath(criteria): Path
- • markFavoritePath(path): None
- • viewPathDetails(path): None
- • getRecommended Paths(): List[Path>
- • findRestroom(): Restroom
- ⚫ findFoodPlace(): Food Place
- C PathFinder
- p: SkiResortMap
- • findBestPath(start, end): Path
- ⚫ collaborateWithMap(map): None
- C PathFilter
- □ skiResortMap: SkiResortMap
- • filterPaths(difficulty Level): List[Path]
- ⚫ collaborateWithMap(map): None
- C) UserLocation
- lastKnownLocation: Waypoint
- ⚫ updateLocation(newLocation): None
- FoodPlace
- ☐ cuisineType: String seatingCapacity: int hasOutdoorSeating: boolean
- ⚫ getCuisineType(): String .getSeatingCapacity(): int
- ⚫ hasOutdoorSeating(): boolean
- C Restroom
- ☐ cleanlinessRating: int hasBabyChangingStation: boolean
- • getCleanlinessRating(): int
- O hasBabyChangingStation(): boolean
- A Amenity
- location: Waypoint
- ☐ name: String
- ⚫ getLocation(): Waypoint
- ⚫ getName(): String
- c) SkiResort Map
- paths: List[Path] amenities: List[Amenity]
- ⚫ findRoute(start Waypoint, endWaypoint): Path
- • filterPathsByDifficulty(difficultyLevel): List[Path]
- • searchForAmenity(type, location): Amenity
- decomposes
- C) Path
- □ waypoints: List[Waypoint>
- ☐ slope: Slope
- difficultyLevel: String
- ☐ length: float
- ☐ additionalAttributes: ...
- ⚫ calculate Distance(); float
- ⚫ getDifficultyLevel(): String O getSlope Details(): Slope
- ☐ liftID: int
- □ name: str
- Lift
- ☐ type: str
- □ capacity: int
- □ status: str
- schedule: dict
- ⚫ getStatus(): str
- • getSchedule(): dict
- ⚫ updateStatus(newStatus: str): None
- ⚫ calculateWaitTime(): float
- ⚫ getDistanceToLift(userLocation: Waypoint): float
- • boardLift(user: User): None
- ⚫ unloadPassengers(): None
- C) Slope difficultyLevel: String length: float
- incline: float
- additionalAttributes: ...
- ⚫ calculateIncline(): float
- • getDifficultyLevel(): String
- ⚫ getLength(): float
- C Waypoint
- ☐ coordinates: Tuple[float, float]
- name: String
- ⚫ getCoordinates(): Tuple[float, float]
- ⚫ getName(): String
Advertisement
Add Comment
Please, Sign In to add comment