Uses of Class
edu.ucsb.cs156.happiercows.entities.Farmer
Packages that use Farmer
Package
Description
-
Uses of Farmer in edu.ucsb.cs156.happiercows.controllers
Methods in edu.ucsb.cs156.happiercows.controllers that return FarmerModifier and TypeMethodDescriptionFarmerController.getFarmerById(Long gameId) FarmerController.getFarmerById(Long userId, Long gameId) -
Uses of Farmer in edu.ucsb.cs156.happiercows.jobs
Methods in edu.ucsb.cs156.happiercows.jobs with parameters of type FarmerModifier and TypeMethodDescriptionstatic voidUpdateCowHealthJob.calculateCowDeaths(Farmer farmer, edu.ucsb.cs156.jobs.services.JobContext ctx) static doubleMilkTheCowsJob.calculateMilkingProfit(Game game, Farmer farmer) Calculate the profit for a user from milking their cows.static doubleUpdateCowHealthJob.calculateNewCowHealthUsingStrategy(CowHealthUpdateStrategy strategy, GamePlus gamePlus, Farmer farmer, int totalCows) static voidMilkTheCowsJob.milkCows(edu.ucsb.cs156.jobs.services.JobContext ctx, Game game, Farmer farmer, ProfitRepository profitRepository, FarmerRepository farmerRepository) This method performs the function of milking the cows for a single farmer. -
Uses of Farmer in edu.ucsb.cs156.happiercows.repositories
Subinterfaces with type arguments of type Farmer in edu.ucsb.cs156.happiercows.repositoriesMethods in edu.ucsb.cs156.happiercows.repositories that return types with arguments of type FarmerModifier and TypeMethodDescriptionFarmerRepository.findByGameId(Long gameId) FarmerRepository.findByGameIdAndUserId(Long gameId, Long userId) Methods in edu.ucsb.cs156.happiercows.repositories with parameters of type FarmerModifier and TypeMethodDescriptionProfitRepository.findAllByFarmer(Farmer farmer) FarmerActivityRepository.findByFarmerOrderByTimestampDesc(Farmer farmer) -
Uses of Farmer in edu.ucsb.cs156.happiercows.services
Methods in edu.ucsb.cs156.happiercows.services with parameters of type FarmerModifier and TypeMethodDescriptionReportService.createAndSaveReportLine(Report report, Farmer farmer) voidFarmerActivityService.recordActivityIfStudentMatch(User user, Game game, Farmer farmer, int activityType, int numCows) Records a FarmerActivity row for the given user/game/farmer/activityType, but only if the game is linked to a course and the user's email matches a student on that course's roster. -
Uses of Farmer in edu.ucsb.cs156.happiercows.strategies
Methods in edu.ucsb.cs156.happiercows.strategies with parameters of type FarmerModifier and TypeMethodDescriptiondoubleCowHealthUpdateStrategy.calculateNewCowHealth(GamePlus gamePlus, Farmer uC, int totalCows)