public IContainer MapFrom(FlatContainerId flatContainerId) { var organ = MapCommonPropertiesFrom(flatContainerId); organ.OrganType = organTypeFromName(organ.Name); return(organ); }
private ISchemaItem mapFrom(FlatSchemaItem flatSchemaItem) { var schemaItem = new SchemaItem(); schemaItem.Name = flatSchemaItem.Name; schemaItem.ApplicationType = ApplicationTypes.ByName(flatSchemaItem.ApplicationType); // temporarily create parent container hierarchy of the //schema item container in order to retrieve parameters from the DB FlatContainerId flatContainer = flatSchemaItem; IContainer container = schemaItem; while (_flatContainerRepo.ParentContainerFrom(flatContainer.Id) != null) { var flatParentContainer = _flatContainerRepo.ParentContainerFrom(flatContainer.Id); container.ParentContainer = new Container { Name = flatParentContainer.Name }; container = container.ParentContainer; flatContainer = flatParentContainer; } // now parameters can be added _parameterContainerTask.AddSchemaItemParametersTo(schemaItem); return(schemaItem); }
public IContainer MapFrom(FlatContainerId flatContainerId) { var compartment = MapCommonPropertiesFrom(flatContainerId); compartment.Visible = FlatContainer.Visible; return(compartment); }
//for the moment, map neighborhoods as compartments public IContainer MapFrom(FlatContainerId flatContainerId) { var neighborhood = MapCommonPropertiesFrom(flatContainerId); neighborhood.Visible = FlatContainer.Visible; return(neighborhood); }
public IContainer MapFrom(FlatContainerId flatContainerId) { var container = MapCommonPropertiesFrom(flatContainerId); if (string.Equals(container.Name, Constants.MOLECULE_PROPERTIES)) { container.ContainerType = ContainerType.Molecule; } return(container); }
public T MapCommonPropertiesFrom(FlatContainerId flatContainerId) { FlatContainer = _flatContainerRepository.ContainerFrom(flatContainerId.Id); var container = _objectBaseFactory.Create <T>().WithName(FlatContainer.Name); addTagsToContainer(container, flatContainerId.Id); container.Mode = FlatContainer.IsLogical ? ContainerMode.Logical : ContainerMode.Physical; return(container); }
public IContainer MapFrom(FlatContainerId flatContainerId) { var containerType = _containerTypeMapper.MapFrom(flatContainerId.Type); foreach (var containerMapper in _allMappers) { if (containerMapper.IsSatisfiedBy(containerType)) { return(containerMapper.MapFrom(flatContainerId)); } } throw new ArgumentException(PKSimConstants.Error.CannotCreateContainerOfType(containerType.ToString())); }
public IContainer MapFrom(FlatContainerId flatContainerId) { return(MapFrom(_flatContainerRepository.ContainerFrom(flatContainerId.Id))); }
public IContainer MapFrom(FlatContainerId flatContainerId) { var eventGroupBuilder = MapCommonPropertiesFrom(flatContainerId); return(eventGroupBuilder); }
public IContainer MapFrom(FlatContainerId flatContainerId) { var organism = base.MapCommonPropertiesFrom(flatContainerId); return(organism); }