Esempio n. 1
0
 def setParameters(
     self,
     enabled=True,
     sendInvitationDistribution=NormalDistribution(600, 60),
     inviteeDistribution=UniformDiscreteDistribution(range(-10, 11)),
     inviteeClumping=True,
     inviteeCountDistribution=LogNormalDistribution(1.2, 1.2),
     eventStartDistribution=NearFutureDistribution(),
     eventDurationDistribution=UniformDiscreteDistribution([
         15 * 60, 30 * 60,
         45 * 60, 60 * 60,
         120 * 60
     ]),
     recurrenceDistribution=RecurrenceDistribution(False),
     fileAttachPercentage=30,
     fileSizeDistribution=NormalDistribution(1024, 1),
     inviteeLookupPercentage=50,
 ):
     self.enabled = enabled
     self._sendInvitationDistribution = sendInvitationDistribution
     self._inviteeDistribution = inviteeDistribution
     self._inviteeClumping = inviteeClumping
     self._inviteeCountDistribution = inviteeCountDistribution
     self._eventStartDistribution = eventStartDistribution
     self._eventDurationDistribution = eventDurationDistribution
     self._recurrenceDistribution = recurrenceDistribution
     self._fileAttachPercentage = fileAttachPercentage
     self._fileSizeDistribution = fileSizeDistribution
     self._inviteeLookupPercentage = inviteeLookupPercentage
Esempio n. 2
0
 def setParameters(self,
                   enabled=True,
                   sendInvitationDistribution=NormalDistribution(600, 60),
                   inviteeDistribution=UniformDiscreteDistribution(
                       range(-10, 11))):
     self.enabled = enabled
     self._sendInvitationDistribution = sendInvitationDistribution
     self._inviteeDistribution = inviteeDistribution
Esempio n. 3
0
 def setParameters(
         self,
         enabled=True,
         interval=25,
         eventStartDistribution=NearFutureDistribution(),
         eventDurationDistribution=UniformDiscreteDistribution(
             [15 * 60, 30 * 60, 45 * 60, 60 * 60, 120 * 60]),
         recurrenceDistribution=RecurrenceDistribution(False),
 ):
     self.enabled = enabled
     self._interval = interval
     self._eventStartDistribution = eventStartDistribution
     self._eventDurationDistribution = eventDurationDistribution
     self._recurrenceDistribution = recurrenceDistribution
Esempio n. 4
0
 def setParameters(
         self,
         enabled=True,
         interval=5,
         pastTheHour=[0, 15, 30, 45],
         eventStartDistribution=NearFutureDistribution(),
         eventDurationDistribution=UniformDiscreteDistribution(
             [15 * 60, 30 * 60, 45 * 60, 60 * 60, 120 * 60]),
         recurrenceDistribution=RecurrenceDistribution(False),
 ):
     self.enabled = enabled
     self._interval = interval
     self._pastTheHour = pastTheHour
     self._eventStartDistribution = eventStartDistribution
     self._eventDurationDistribution = eventDurationDistribution
     self._recurrenceDistribution = recurrenceDistribution
     self._lastMinuteChecked = -1
Esempio n. 5
0
 def setParameters(
         self,
         enabled=True,
         interval=25,
         eventStartDistribution=NearFutureDistribution(),
         eventDurationDistribution=UniformDiscreteDistribution(
             [15 * 60, 30 * 60, 45 * 60, 60 * 60, 120 * 60]),
         recurrenceDistribution=RecurrenceDistribution(False),
         fileAttachPercentage=30,
         fileSizeDistribution=NormalDistribution(1024, 1),
 ):
     self.enabled = enabled
     self._interval = interval
     self._eventStartDistribution = eventStartDistribution
     self._eventDurationDistribution = eventDurationDistribution
     self._recurrenceDistribution = recurrenceDistribution
     self._fileAttachPercentage = fileAttachPercentage
     self._fileSizeDistribution = fileSizeDistribution