In your comment, you write:
Okay so I think when he creates an instance of ScheduleEvent he would
have you add a string sort of like event = new
ScheduleEvent('myEvent') which would then be stored in the "event"
variable. When you call isOccuring on the Schedule you pass the name
of your event and it'll cycle through each SE object and see if they
have the same name to then check if it is occuring.
Correct. It's simply a label for the event whose recurrence you're describing with a TemporalExpression
. If you wanted to integrate your implementation with arbitrary existing systems, you might even make that an Object
instead of a String
, and then you could pass in some Event
object defined elsewhere.