def Schedule(calendar, EventType, EventTime, clock): #Schedule future events of EventType to occur at time Clock + EventTime addedEvent = Basic_Classes.EventNotice() addedEvent.EventType = EventType addedEvent.EventTime = clock + EventTime calendar.Schedule(addedEvent)
def SchedulePlus(calendar, EventType, EventTime, TheObject, clock): #Schedule future events of EventType to occur at time Clock + EventTime #and pass with the event notice TheObject addedEvent = Basic_Classes.EventNotice() addedEvent.EventType = EventType addedEvent.EventTime = clock + EventTime addedEvent.WhichObject = TheObject calendar.Schedule(addedEvent)