-
Notifications
You must be signed in to change notification settings - Fork 2
/
Results.h
72 lines (55 loc) · 1.47 KB
/
Results.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* Results.h
*
* Created on: Nov 22, 2016
* Author: rocco
*/
#ifndef RESULTS_H_
#define RESULTS_H_
#include "Queue.h"
#include "GraphAttributes.h"
#include "LList.h"
class Results {
public:
Results();
Results(Queue* life, double price, double moneyIn, double assetsIn, double savingsIn, double numS);
Queue* getLifeCycle();
double getTotalValue();
double getFinalPrice();
double getMoney();
double getAssets();
double getSavings();
double getNumStocks();
double getMin();
double getMax();
GraphAttributes* getAttributesForDistr();
int getNumberOfOccurencesAt(int position);
void incrementDistributionAt(int position);
GraphAttributes* getAttributesForPerfVsPrice();
double getListAt_PositionAt(int positionInArr, int posInLList);
int getSizeOfListAt(int pos);
void addToPerfVsPrice(int pos, double data);
void setUpPerfVsPrice();
void setMin(double minIn);
void setMax(double maxIn);
void setTotalVal(double valIn);
//~Results();
private:
void setUpDistributionSet();
// Possibly hold the life cycle
Queue* lifeCycle;
double stockFinalPrice;
double totalValue;
double money;
double assets;
double savings;
double numStocks;
double minPerf; // worst performance
double maxPerf; // inverse
int distribution[40]; // holds all performance values
GraphAttributes* parametersForDistr;
LList* performanceVsPrice[40];
GraphAttributes* parametersForPerfVsPrice;
int volatilityFactor; // TODO Calculate a volatility factor
};
#endif /* RESULTS_H_ */