def __init__(self, name, description=None,
start_datetime=datetime.min,
timestep_period_duration=TimePeriod.month,
timestep_period_count=1):
"""Initialise the object.
:param name: The name.
:param description: The description.
:param start_datetime: The start datetime.
:param timestep_period_duration: The duration of each time period.
:param timestep_period_count: The number of periods that makes up a
timestep.
"""
super(Clock, self).__init__(name, description)
self.start_datetime = start_datetime
self.timestep_period_duration = timestep_period_duration
self.timestep_period_count = timestep_period_count
self.timestep_ix = 0
评论列表
文章目录