Executive

class Executive(myEventCalendar: CalendarIfc = PriorityQueueEventCalendar()) : Observable<KSLEvent<*>?>

Constructors

Link copied to clipboard
constructor(myEventCalendar: CalendarIfc = PriorityQueueEventCalendar())

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val beginExecutionTime: Instant
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val endedExecutionTime: Instant
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun attachObserver(observer: ObserverIfc<KSLEvent<*>?>)

Allows the adding (attaching) of an observer to the observable

Link copied to clipboard
open override fun countObservers(): Int

Returns how many observers are currently attached to the observable

Link copied to clipboard
open override fun detachAllObservers()

Detaches all the observers from the observable

Link copied to clipboard
open override fun detachObserver(observer: ObserverIfc<KSLEvent<*>?>)

Allows the deletion (removing) of an observer from the observable

Link copied to clipboard

Checks to see if the executive has another event

Link copied to clipboard
open override fun isAttached(observer: ObserverIfc<KSLEvent<*>?>): Boolean

Returns true if the observer is already attached

Link copied to clipboard

Returns true if an event has been scheduled to stop execution at getTimeHorizon()

Link copied to clipboard
fun <T> Observable<T>.observe(block: (T?) -> Unit)
Link copied to clipboard

Returns the time the execution was scheduled to end

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

If the Executive has an end event or maximum allowed execution time, then return true