EventScheduler

Uses the builder pattern to create and schedule the event and the action that is associated with the event

Parameters

the type associated with the messages on the event

Constructors

Link copied to clipboard
constructor(action: ModelElement.EventActionIfc<T>)

Functions

Link copied to clipboard
open override fun after(time: Double): ModelElement.TimeUnitIfc<T>

Sets the time of the event being built to current time plus time

open override fun after(value: GetValueIfc): ModelElement.TimeUnitIfc<T>

Sets the time of the event being built to current time + value.getValue()

Link copied to clipboard
open override fun days(): KSLEvent<T>

Creates and schedules the event associated carrying the model interpreting the event time in days

Link copied to clipboard
open override fun havingPriority(priority: Int): ModelElement.EventBuilderIfc<T>

Sets the scheduling priority of the event, lower is faster

Link copied to clipboard
open override fun hours(): KSLEvent<T>

Creates and schedules the event associated carrying the model interpreting the event time in hours

Link copied to clipboard
open override fun milliseconds(): KSLEvent<T>

Creates and schedules the event associated carrying the model interpreting the event time in milliseconds

Link copied to clipboard
open override fun minutes(): KSLEvent<T>

Creates and schedules the event associated carrying the model interpreting the event time in minutes

Link copied to clipboard
open override fun name(name: String?): ModelElement.EventBuilderIfc<T>

Sets the name of the event being built

Link copied to clipboard
open override fun now(): KSLEvent<T>

Causes the event that is being built to be scheduled at the current simulation time (no time offset)

Link copied to clipboard
open override fun seconds(): KSLEvent<T>

Creates and schedules the event associated carrying the model interpreting the event time in seconds

Link copied to clipboard
open override fun units(): KSLEvent<T>

Creates and schedules the event reacting with the base time units associated with the model

Link copied to clipboard
open override fun weeks(): KSLEvent<T>

Creates and schedules the event associated carrying the model interpreting the event time in weeks

Link copied to clipboard
open override fun withMessage(message: T): ModelElement.EventBuilderIfc<T>

An object of type T that is attached to the event