Tópico anterior: Escopo de lógica de negócios

Próximo tópico: Classe

Scripts do modelo do módulo de lógica de negócios

Option Explicit
Sub OnRegistration(dispatcher)
  'TODO: Add code here to register events needed to calculate service level
End Sub

Sub OnLoad(time)
  'TODO: Add code here to handle calculation start event
End Sub

Sub OnPeriodStart(time)
  'TODO: Add code here to handle period start event
End Sub

Sub OnPeriodEnd(time, isComplete)
  'TODO: Add code here to handle period end event
End Sub

Sub OnTimeslotEnter(time)
  'TODO: Add code here to handle entering Timeslot event
End Sub

Sub OnTimeslotExit(time)
  'TODO: Add code here to handle exiting Timeslot event
End Sub

'TODO: Duplicate and rename function according to event registration
Sub OnxxEvent(eventDetails)
  'TODO: Add code here to handle arriving events
End Sub

Function Result
  'TODO: Add code here to calculate final result
  Result = Null
End Function