示例#1
0
    def insert(self, start_time: int, schedule: ScheduleComponent) -> 'Schedule':
        """Return a new schedule with `schedule` inserted within `self` at `start_time`.

        Args:
            start_time: time to be inserted
            schedule: schedule to be inserted
        """
        return ops.insert(self, start_time, schedule)
示例#2
0
    def insert(self,
               start_time: int,
               schedule: ScheduleComponent,
               buffer: bool = False,
               name: str = None) -> 'ScheduleComponent':
        """Return a new schedule with `schedule` inserted within `self` at `start_time`.

        Args:
            start_time: time to be inserted
            schedule: schedule to be inserted
            buffer: Obey buffer when inserting
            name: Name of the new schedule. Defaults to name of parent
        """
        return ops.insert(self, start_time, schedule, buffer=buffer, name=name)