Class GroupActivity


  • public class GroupActivity
    extends Object
    Join table between SocialGroup and Activity. Intended to be created and populated by auto-configuration
    Author:
    Govert Buijs, John Collins
    • Constructor Detail

      • GroupActivity

        public GroupActivity​(String name)
        Auto-configure constructor
    • Method Detail

      • initialize

        public void initialize​(int activityId,
                               double maleDailyKm,
                               double femaleDailyKm,
                               double maleProbability,
                               double femaleProbability)
        Fills in fields for testing
      • getName

        public String getName()
      • getGroupId

        public int getGroupId()
      • getActivityId

        public int getActivityId()
      • getDailyKm

        public double getDailyKm​(String gender)
      • getProbability

        public double getProbability​(String gender)
      • getMaleDailyKm

        public double getMaleDailyKm()
      • getFemaleDailyKm

        public double getFemaleDailyKm()
      • getMaleProbability

        public double getMaleProbability()
      • getFemaleProbability

        public double getFemaleProbability()