-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBalloon_Payload.m
38 lines (34 loc) · 1.21 KB
/
Balloon_Payload.m
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
31
32
33
34
35
36
37
38
%if the payload ns a parent, position is zero and the parent field should
%be left as 'none', 'zero', or 'n/a'.
%the ready field is used in some mass calcations to incldue (true) or
%exclude (false) in totaling calculations.
classdef Balloon_Payload
properties
name
ready
mass
parent
position
%properties
end
methods
function Module = Balloon_Payload(name,ready,mass,parent,position)
%Since character vectors and strings are acceptable for names
%and parents, current checking is diabled
%if isstring(name) == true
Module.name = name;
%else
% disp('name must be a string')
%end
assert(islogical(ready),'Balloon_Payload:ReadyNotLogical','ready must be a logical')
Module.mass = mass;
%if isstring(parent) == true
Module.parent = parent; %if parent, use 'none', 'zero', or 'n/a'
%else
% disp('parent must be a string')
%end
Module.position = position; %if parent, use zero
end
%methods
end
end