forked from pavelbrodskiy/embryoSimulation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimulationCell.m
More file actions
30 lines (28 loc) · 1.2 KB
/
SimulationCell.m
File metadata and controls
30 lines (28 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% This class represents an individual cell in the sheet
classdef SimulationCell
properties
volume@double % Size of the cell [um]
spitzArray@double % Concentration of spitz [AU]
winglessArray@double % Concentration of wingless [AU]
divisionTimer@double % Time until each division [s]
engrailed@logical % Is engrailed turned on? [boolean]
dying@logical % Is cell undergoing apoptosis? [boolean]
xStep@double % Spatial dimensions of domain [um]
end
methods
% Default constructor: Minimum inputs to create a cell
function obj = SimulationCell(engrailed, xStep)
% Values for default constructor
defaultVolume = 10;
defaultDivisionTimes = [10000];
% Construct cell from default values
obj.volume = defaultVolume;
obj.spitzArray = ones(1,uint16(obj.volume/xStep))*1;
obj.winglessArray = obj.spitzArray;
obj.divisionTimer = defaultDivisionTimes;
obj.engrailed = engrailed;
obj.dying = false;
obj.xStep = xStep;
end
end
end