Sage Modeling and Simulation Library

SPBInitializer Class

An SPBInitializer is an object that can be used to automatically initialize a SmartPropertyBag. For example, if the need was to add some user-defined fields to each piece of equipment (modeled as a SPB) as it was created, the following code would be useful:
// Presume that m_initializers was a hashtable of initializers...
public void InitializeEquipment(SOMEquipment equipment){
    foreach (SPBInitializer initializer in m_initializers.Values){
This class is typically derived-from, with serial number incrementation, driver or operator name assignment, etc, provided in a custom method.

Note : The initializer, once created, is configured to initialize only one way, e.g. creating an entry called 'Mixer' that is set to "Off".

Namespace:  Highpoint.Sage.SimCore
Assembly:  Sage4 (in Sage4.dll)


public class SPBInitializer : IXmlPersistable

Inheritance Hierarchy