コード例 #1
0
ファイル: VBASim.py プロジェクト: zihangqiu31/Simulation
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)
コード例 #2
0
ファイル: VBASim.py プロジェクト: zihangqiu31/Simulation
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)