public PhloemCell(ICellGeometry geometry, IVacuole vacuole, ICellWall cellWall)
 {
     Geometry = geometry;
     Vacuole  = vacuole;
     CellWall = cellWall;
 }
Exemple #2
0
 private IPlantCell CreatePlantCell(PlantCellType type, ICellGeometry geometry, IVacuole vacuole,
                                    ICellWall cellWall)
 {
     return(cellFactory.CreateCell(type, geometry, vacuole, cellWall));
 }
 protected PlantCell(ICellGeometry geometry, ICellWall cellWall, IVacuole vacuole)
 {
     StarchStorage = new StarchStorage(0);
 }
 public ParenchymaCell(ICellGeometry geometry, IVacuole vacuole, ICellWall cellWall)
 {
     Geometry = geometry;
     Vacuole  = vacuole;
     CellWall = cellWall;
 }
        /// <summary>
        /// Helper method to instantiate a new plant cell type based on the provided type
        /// </summary>
        /// <param name="type">The type of cell to new</param>
        /// <param name="geometry">The new geometry</param>
        /// <param name="vacuole">The vacuole organ</param>
        /// <param name="wall">The cell wall</param>
        /// <param name="neighbors">The neighboring plant cells</param>
        /// <returns>New cell of type <see cref="type"/> with provided parameters</returns>
        private IPlantCell InstantiateCell(PlantCellType type, ICellGeometry geometry, IVacuole vacuole, ICellWall wall)
        {
            switch (type)
            {
            case PlantCellType.Xylem:
                return(new XylemCell(geometry, vacuole, wall));

            case PlantCellType.Phloem:
                return(new PhloemCell(geometry, vacuole, wall));

            case PlantCellType.Sclerenchyma:
                return(new SclerenchymaCell(geometry, vacuole, wall));

            case PlantCellType.Collenchyma:
                return(new CollenchymaCell(geometry, vacuole, wall));

            case PlantCellType.Parenchyma:
                return(new ParenchymaCell(geometry, vacuole, wall));

            default:
                throw new ArgumentOutOfRangeException(nameof(type), type, "Invalid Plant Cell Type");
            }
        }
 /// <summary>
 /// Helper method to instantiate a new plant cell type based on the provided type
 /// </summary>
 /// <param name="type">The type of cell to new</param>
 /// <param name="geometry">The new geometry</param>
 /// <param name="vacuole">The vacuole organ</param>
 /// <param name="wall">The cell wall</param>
 /// <param name="neighbors">The neighboring plant cells</param>
 /// <returns>New cell of type <see cref="type"/> with provided parameters</returns>
 public IPlantCell CreateCell(PlantCellType type, ICellGeometry geometry, IVacuole vacuole, ICellWall wall)
 {
     return(InstantiateCell(type, geometry, vacuole, wall));
 }
 public XylemCell(ICellGeometry geometry, IVacuole vacuole, ICellWall cellWall) : this()
 {
     Geometry = geometry;
     Vacuole  = vacuole;
     CellWall = cellWall;
 }
Exemple #8
0
 public CollenchymaCell(ICellGeometry geometry, IVacuole vacuole, ICellWall cellWall) : base(geometry, cellWall, vacuole)
 {
 }