Package concurrent_tree_crawler :: Package common :: Module activity_schedule :: Class AbstractActivitySchedule
[hide private]
[frames] | no frames]

Class AbstractActivitySchedule

source code


Activity and inactivity time schedule.

We Assume that the time axis consists of two types of periods: activity and inactivity. Each time point belongs either to activity or inactivity period.

Instance Methods [hide private]
ActivityInfo
get_activity_info(self, now=None)
Returns: activity information relative to now
source code
Method Details [hide private]

get_activity_info(self, now=None)

source code 
Parameters:
  • now (datetime.datetime) - current time, by default, it is the value of datetime.datetime.now()
Returns: ActivityInfo
activity information relative to now