Class GroupGenerator
java.lang.Object
simu.model.GroupGenerator
GroupGenerator class that generates a group of customers.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateCustomerGroup(int maxSize) Constructs a GroupGenerator object with the specified group ID.intgroupSize(int n) Generates a random group size.
-
Constructor Details
-
GroupGenerator
public GroupGenerator()
-
-
Method Details
-
generateCustomerGroup
-
groupSize
public int groupSize(int n) Generates a random group size.- Parameters:
n- Parameter for maximum group size.- Returns:
- Random group size.
-