Package org.powertac.evcustomer.beans
Class GroupActivity
- java.lang.Object
-
- org.powertac.evcustomer.beans.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 Summary
Constructors Constructor Description GroupActivity(String name)
Auto-configure constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getActivityId()
double
getDailyKm(String gender)
double
getFemaleDailyKm()
double
getFemaleProbability()
int
getGroupId()
double
getMaleDailyKm()
double
getMaleProbability()
String
getName()
double
getProbability(String gender)
void
initialize(int activityId, double maleDailyKm, double femaleDailyKm, double maleProbability, double femaleProbability)
Fills in fields for testing
-
-
-
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()
-
-