Uses of Class
edu.ucsb.cs156.happiercows.entities.Commons
Package
Description
-
Uses of Commons in edu.ucsb.cs156.happiercows.controllers
-
Uses of Commons in edu.ucsb.cs156.happiercows.entities
Modifier and TypeMethodDescriptionstatic int
Commons.computeEffectiveCapacity
(Commons commons, CommonsRepository commonsRepository) -
Uses of Commons in edu.ucsb.cs156.happiercows.jobs
Modifier and TypeMethodDescriptionstatic double
MilkTheCowsJob.calculateMilkingProfit
(Commons commons, UserCommons userCommons) Calculate the profit for a user from milking their cows.static double
UpdateCowHealthJob.calculateNewCowHealthUsingStrategy
(CowHealthUpdateStrategy strategy, Commons commons, CommonsRepository commonsRepository, UserCommons userCommons, int totalCows) void
MilkTheCowsJob.milkCows
(JobContext ctx, Commons commons, UserCommons userCommons) This method performs the function of milking the cows for a single userCommons. -
Uses of Commons in edu.ucsb.cs156.happiercows.strategies
Modifier and TypeMethodDescriptiondouble
CowHealthUpdateStrategy.calculateNewCowHealth
(Commons commons, CommonsRepository commonsRepository, UserCommons user, int totalCows)