Пример #1
0
        public static void Initialize(IRegistrar registrar)
        {
            // Register library
            registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);
            // Register model object types
            TerminalId maxTerminalId = 2;

            registrar.RegisterModelObjectType(new GenericModelObjectType("ValueDevice", namespaceName, categoryTitle,
                                                                         ValueDevice.CreateInstance, ValueDevice.GetPropertyDefinitions, maxTerminalId));
        }
Пример #2
0
        public static void Initialize(IRegistrar registrar)
        {
            registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);

            registrar.RegisterModelObjectType(new GenericModelObjectType("AutoDisconnector", namespaceName, categoryTitle,
                                                                         modelObjectType => new AutoDisconnector(modelObjectType),
                                                                         AutoDisconnector.GetPropertyDefinitions, 2));
            registrar.RegisterModelObjectType(new GenericModelObjectType("BusBar", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new BusBar(modelObjectType)); },
                                                                         BusBar.GetPropertyDefinitions, 1));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Disconnector", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Disconnector(modelObjectType)); },
                                                                         Disconnector.GetPropertyDefinitions, 2));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Earth", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Earth(modelObjectType)); },
                                                                         Earth.GetPropertyDefinitions, 1));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Feeder", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Feeder(modelObjectType)); },
                                                                         Feeder.GetPropertyDefinitions, 1));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Title", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Label(modelObjectType)); },
                                                                         Label.GetPropertyDefinitions, 0));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Line", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Line(modelObjectType)); },
                                                                         Line.GetPropertyDefinitions, 1));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Measurement", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Measurement(modelObjectType)); },
                                                                         Measurement.GetPropertyDefinitions, 0));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Picture", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Picture(modelObjectType)); },
                                                                         Picture.GetPropertyDefinitions, 0));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Switch", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Switch(modelObjectType)); },
                                                                         Switch.GetPropertyDefinitions, 2));
            registrar.RegisterModelObjectType(new GenericModelObjectType("Transformer", namespaceName, categoryTitle,
                                                                         delegate(ModelObjectType modelObjectType) { return(new Transformer(modelObjectType)); },
                                                                         Transformer.GetPropertyDefinitions, 3));
        }
Пример #3
0
 public static void Initialize(IRegistrar registrar)
 {
     registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);
     registrar.RegisterModelObjectType(new GenericModelObjectType("ValueDevice", namespaceName, categoryTitle,
         ValueDevice.CreateInstance, ValueDevice.GetPropertyDefinitions, 2));
 }
Пример #4
0
		public static void Initialize(IRegistrar registrar) {
			registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);
			registrar.RegisterModelObjectType(new GenericModelObjectType("MyBusinessObjectType", namespaceName, categoryTitle,
				(ModelObjectType type) => { return new MyBusinessObject(type); }, MyBusinessObject.GetPropertyDefinitions, 0));
		}
Пример #5
0
 public static void Initialize(IRegistrar registrar)
 {
     registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);
     registrar.RegisterModelObjectType(new GenericModelObjectType("MyBusinessObjectType", namespaceName, categoryTitle,
         (ModelObjectType type) => { return new MyBusinessObject(type); }, MyBusinessObject.GetPropertyDefinitions, 0));
 }
Пример #6
0
		public static void Initialize(IRegistrar registrar) {
			registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);

			registrar.RegisterModelObjectType(new GenericModelObjectType("AutoDisconnector", namespaceName, categoryTitle,
				modelObjectType => new AutoDisconnector(modelObjectType),
				AutoDisconnector.GetPropertyDefinitions, 2));
			registrar.RegisterModelObjectType(new GenericModelObjectType("BusBar", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new BusBar(modelObjectType); },
				BusBar.GetPropertyDefinitions, 1));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Disconnector", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Disconnector(modelObjectType); },
				Disconnector.GetPropertyDefinitions, 2));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Earth", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Earth(modelObjectType); },
				Earth.GetPropertyDefinitions, 1));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Feeder", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Feeder(modelObjectType); },
				Feeder.GetPropertyDefinitions, 1));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Title", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Label(modelObjectType); },
				Label.GetPropertyDefinitions, 0));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Line", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Line(modelObjectType); },
				Line.GetPropertyDefinitions, 1));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Measurement", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Measurement(modelObjectType); },
				Measurement.GetPropertyDefinitions, 0));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Picture", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Picture(modelObjectType); },
				Picture.GetPropertyDefinitions, 0));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Switch", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Switch(modelObjectType); },
				Switch.GetPropertyDefinitions, 2));
			registrar.RegisterModelObjectType(new GenericModelObjectType("Transformer", namespaceName, categoryTitle,
				delegate(ModelObjectType modelObjectType) { return new Transformer(modelObjectType); },
				Transformer.GetPropertyDefinitions, 3));
		}
Пример #7
0
 public static void Initialize(IRegistrar registrar)
 {
     registrar.RegisterLibrary(namespaceName, preferredRepositoryVersion);
     registrar.RegisterModelObjectType(new GenericModelObjectType("ValueDevice", namespaceName, categoryTitle,
                                                                  ValueDevice.CreateInstance, ValueDevice.GetPropertyDefinitions, 2));
 }