Example #1
0
	def reset(self):

		"""See item."""

		coroutines.reset(self)
		# Recreate the items adapter when the schedule is re-initialized.
		self._items = items_adapter(self.schedule)
Example #2
0
	def reset(self):

		"""See item."""

		coroutines.reset(self)
		# Recreate the items adapter when the schedule is re-initialized.
		self._items = items_adapter(self.schedule)
Example #3
0
    def items(self, val):
        """
		desc:
			A setter that maps an items list to a schedule list.
		"""

        self.schedule = self.schedule[:len(val)]
        self._items = items_adapter(self.schedule)
        for i, (item_name, cond) in enumerate(val):
            start_time = self.schedule[i][1]
            end_time = self.schedule[i][2]
            self.schedule[i] = item_name, start_time, end_time, cond