Sage Modeling and Simulation Library

IModel Methods

The IModel type exposes the following members.


  Name Description
Public method Abort
Aborts the model.
Public method AddError
Adds an error to the model, and iterates over all of the error handlers, allowing each in turn to respond to the error. As soon as any errorHandler indicates that it has HANDLED the error (by returning true from 'HandleError'), the error is cleared, and further handlers are not called.
Public method AddErrorHandler
Enables a user/developer to add an error handler to the model in real time, (e.g. during a simulation run) and ensures that that handler is called for any errors currently in existence in the model.
Public method AddModelObject
Adds a model object to this model's ModelObjects collection.
Public method AddService<(Of <<'(T>)>>)
Adds the specified service with the provided name.
Public method AddWarning
Adds a warning to this model, e.g. a 'GenericModelWarning'...
Public method ClearAllErrors
Removes all errors.
Public method ClearAllErrorsFor
Removes all errors whose target is the specified object.
Public method ClearAllWarnings
Clears all of the warnings applicable to this model.
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 GetService<(Of <<'(T>)>>)
Gets the service of the specified type, and known by the provided name.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasErrors
Returns true if the model has errors.
Public method HasWarnings
Returns true if this model has any active warnings.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Pause
Pauses execution of this model after completion of the running callback of the current event.
Public method RemoveError
Removes the error from the model's collection of errors.
Public method RemoveErrorHandler
Removes an error handler from the model.
Public method Reset
Resets the model. First resets the executive, then fires the Model.Resetting event.
Public method Resume
Resumes execution of this model. Ignored if the model is not already paused.
Public method Start
Starts the model.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)