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(); }
public LayerInstance NewInstance(ApplicationInstance applicationInstance, UsedLayersInstance usedLayerInstance) { var moduleInstances = new List<ModuleInstance>(); var layerInstance = new LayerInstance(this, applicationInstance, moduleInstances, usedLayerInstance); foreach (ModuleModel module in this.modules) { ModuleInstance moduleInstance = module.NewInstance(layerInstance); moduleInstances.Add(moduleInstance); } return layerInstance; }
public LayerInstance NewInstance(ApplicationInstance applicationInstance, UsedLayersInstance usedLayerInstance) { var moduleInstances = new List <ModuleInstance>(); var layerInstance = new LayerInstance(this, applicationInstance, moduleInstances, usedLayerInstance); foreach (ModuleModel module in this.modules) { ModuleInstance moduleInstance = module.NewInstance(layerInstance); moduleInstances.Add(moduleInstance); } return(layerInstance); }
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(); }