Example #1
0
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)
Example #2
0
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)