Beispiel #1
0
 public LayerInstance(LayerModel model, ApplicationInstance applicationInstance, IList<ModuleInstance> moduleInstances, UsedLayersInstance usedLayersInstance)
 {
     this.Model = model;
     this.ApplicationInstance = applicationInstance;
     this.moduleInstances = moduleInstances;
     this.UsedLayersInstance = usedLayersInstance;
     //   this.moduleActivator = new Activator();
 }
Beispiel #2
0
 public Resolution(ApplicationModel application,
                   LayerModel layer,
                   ModuleModel module,
                   ObjectDescriptor objectDescriptor,
                   CompositeMethodModel method,
                   FieldInfo field)
 {
     this.Application = application;
     this.Layer = layer;
     this.Module = module;
     this.ObjectDescriptor = objectDescriptor;
     this.Method = method;
     this.Field = field;
 }
Beispiel #3
0
        public static LayerModel NewModel(LayerAssembly layer)
        {
            var moduleModels = new List<ModuleModel>();

            foreach (ModuleAssemblyImpl module in layer.Modules)
            {
                ModuleModel moduleModel = module.AssembleModule();
                moduleModels.Add(moduleModel);
            }

            //TODO:fix usedLayerModel

            var usedLayersModel = new List<LayerModel>();

            var layerModel = new LayerModel(layer.Name, layer.MetaInfo, usedLayersModel, moduleModels);

            return layerModel;
        }
Beispiel #4
0
 public ModuleModel(string name,
                    MetaInfo metaInfo,
                    TransientsModel transientsModel,
                    EntitiesModel entitiesModel,
                    ObjectsModel objectsModel,
                    ValuesModel valuesModel,
                    ServicesModel servicesModel,
                    ImportedServicesModel importedServicesModel)
 {
     this.Name = name;
     this.MetaInfo = metaInfo;
     this.Transients = transientsModel;
     this.entities = entitiesModel;
     this.Objects = objectsModel;
     this.Values = valuesModel;
     this.Services = servicesModel;
     this.ImportedServicesModel = importedServicesModel;
     this.layerModel = null;
 }