-
Notifications
You must be signed in to change notification settings - Fork 0
/
FomadonDeveloper.h
50 lines (40 loc) · 1.78 KB
/
FomadonDeveloper.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
#ifndef FOMADONDEVELOPER_H
#define FOMADONDEVELOPER_H
#include "Film.h"
class FomadonDeveloper {
private:
Film _film;
float _temperature = 1.0; //If set to 1, the the temp is et to auto mode and is measured by a temp sensor
float devTimeMultiplicator = 1.0; //Depends on configuration from the display menu
long developmentTime; //Depends on configuration from the display menu
long agitationInitialSeconds = 31; //From the Foma technical sheets
long agitationSeconds = 10; ////From the Foma technical sheets
int agitationIntervalSeconds = 60; ////From the Foma technical sheets
long totalTime; //Depends on configuration from the display menu
bool agitate = false;
protected:
String developerName; //Depends on configuration from the display menu
//Find the development time for an unlisted temperature in the technical sheets
void InterpolateCorrection(float temperature);
int timeCompensationPercentage = 0; //Depends on configuration from the display menu
public:
FomadonDeveloper();
FomadonDeveloper(Film *film);
FomadonDeveloper(Film *film, float temperature);
// Factory Method
static FomadonDeveloper* Create(int devType);
Film getFilm();
void setFilm(Film *film);
void setTimeCompensationPercentage (int timeCompensationPercentage);
long getAgitationInitialSeconds();
long getAgitationSeconds();
int getAgitationIntervalSeconds();
float getTemperature();
void setTemperature(float temperature);
float getDevTimeMultiplicator();
virtual String getDeveloperName() = 0;
virtual int getTimeCompensationPercentage () = 0;
virtual long getTotalTime() = 0;
virtual long getDevelopmentTime() = 0;
};
#endif