june.policy.leisure_policies.LeisurePolicies¶
-
class
june.policy.leisure_policies.
LeisurePolicies
(policies: List[june.policy.policy.Policy]) A collection of like policies active on the same date
-
__init__
(policies: List[june.policy.policy.Policy]) A collection of like policies active on the same date
-
apply
(date: <module 'datetime' from '/home/sadie/anaconda3/envs/june/lib/python3.8/datetime.py'>, leisure: june.groups.leisure.leisure.Leisure) Applies leisure policies. There are currently two types of leisure policies implemented: CloseLeisureVenue, and ChangeLeisureProbability. To ensure compatibility when adding multiple policies of the same type, we “clear” the leisure module at the beginning of each application, ie, we set closed_venues = set(), and the original probabilities for each social venue distributor. We then apply the policies currently active at the given date.
-
classmethod
from_policies
(policies: june.policy.policy.Policies)
-
get_active
(date: <module 'datetime' from '/home/sadie/anaconda3/envs/june/lib/python3.8/datetime.py'>)
-
original_leisure_probabilities_per_venue
= None
-
policy_type
= 'leisure'
-