Sage Modeling and Simulation Library

IExecutive Methods

The IExecutive type exposes the following members.

Methods


  Name Description
Public method Abort
Aborts the executive. This always flushes the event queue and terminates all running events.
Public method ClearVolatiles
Removes any entries in the task graph whose keys or values have the TaskGraphVolatile attribute. This is used, typically, to 'reset' the task graph for a new simulation run.
Public method Detach
Removes all instances of .NET event and simulation discrete event callbacks from this executive.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method Join
This method blocks until the events that correlate to the provided event codes (which are returned from the RequestEvent APIs) are completely serviced. The event on whose thread this method is called must be a detachable event, all of the provided events must have been requested already, and none can have already been serviced.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Pause
If running, pauses the executive and transitions its state to 'Paused'.
Public method RequestDaemonEvent
Requests that the executive queue up a daemon event to be serviced at a specific time and priority. If only daemon events are enqueued, the executive will not be kept alive.
Public method RequestEvent(ExecEventReceiver, DateTime)
Requests that the executive queue up an event to be serviced at a specific time. Priority is assumed to be zero, and the userData object is assumeds to be null.
Public method RequestEvent(ExecEventReceiver, DateTime, Object)
Requests that the executive queue up an event to be serviced at a specific time. Priority is assumed to be zero.
Public method RequestEvent(ExecEventReceiver, DateTime, Double, Object)
Requests that the executive queue up an event to be serviced at a specific time and priority.
Public method RequestEvent(ExecEventReceiver, DateTime, Double, Object, ExecEventType)
Requests that the executive queue up an event to be serviced at a specific time and priority.
Public method RequestImmediateEvent
Requests that the executive queue up an event to be serviced at the current executive time and priority.
Public method Reset
Resets the executive - this clears the event list and resets now to 1/1/01, 12:00 AM
Public method Resume
If paused, unpauses the executive and transitions its state to 'Running'.
Public method SetStartTime
Public method Start
Starts the executive. The calling thread will be the primary execution thread, and will not return until execution is completed (via completion of all non-daemon events or the Abort method.)
Public method Stop
Stops the executive. This may be a pause or a stop, depending on if events are queued or running at the time of call.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method UnRequestEvent
Removes an already-submitted request for a time-based notification.
Public method UnRequestEvents(IExecEventSelector)
Removes an already-submitted request for a time-based notification based on a user-provided selector object.
Public method UnRequestEvents(Object)
Removes all already-submitted requests for a time-based notification into a specific callback target object.
Public method UnRequestEvents(Delegate)
Removes all already-submitted requests for a time-based notification into a specific callback target object.