-
Notifications
You must be signed in to change notification settings - Fork 1
/
nodalunit.h
40 lines (38 loc) · 1.04 KB
/
nodalunit.h
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
39
40
#ifndef __NODALUNIT_H__
#define __NODALUNIT_H__
#include "organ.h"
#include "leaf.h"
#include "stem.h"
#include "development.h"
class CNodalUnit
{
public:
CNodalUnit();
~CNodalUnit();
int get_rank() {return rank;}
bool isInitiated() {return initiated;}
bool isGrowing() {return growing;}
bool isProlific() {return prolific;}
bool isAging() {return aging;}
bool isTerminated() {return terminated;}
CLeaf * get_leaf() {return leaf;}
CStem * get_stem() {return stem;}
// CSheath * get_sheath() {return sheath;}
// CInternode * get_internode() {return internode;}
void set_leaf(CLeaf * x) {leaf=x;}
void set_stem(CStem * x) {stem=x;}
// void set_sheath(CSheath * x) {sheath=x;}
// void set_internode(CInternode * x) {internode=x;}
void update(CDevelopment *);
void initialize(int, CDevelopment * dv);
double get_leafLength(int rank);
private:
int rank;
bool initiated, growing, prolific, aging, terminated;
CLeaf * leaf;
CStem * stem;
double mass;
// CSheath * sheath;
// CInternode * internode;
};
#endif