LoveBrains  1.0.0
app_const.h
1 /*
2 ** app_const.h for LoveBrains in /home/robin_f/Programming/Git/CPP/LoveBrains
3 **
4 ** Made by Guillaume ROBIN
5 ** Login <robin_f@epitech.eu>
6 **
7 ** Started on Fri Jul 31 11:49:24 2015 Guillaume ROBIN
8 ** Last update Tue Aug 25 12:08:57 2015 Guillaume ROBIN
9 */
10 
11 #ifndef APP_CONST_H_
12 # define APP_CONST_H_
13 
14 /*
15 ** Error strings.
16 */
17 # define ERR_APP_INVALIDCONF (const char *)"Error: ConfigManager: invalid configuration file"
18 # define ERR_APP_UNEXPECTED_TOK (const char *)"Error: ConfigManager: unexpected token: "
19 # define ERR_APP_SIMULATOR (const char *)"Error: App: cannot initialize the simulator"
20 # define ERR_APP_NEEDIA (const char *)"Error: App: no brains found"
21 
22 # define ERR_APP_HELP (const char *)"Usage: ./LoveBrains simulationFile environmentFile outputFile"
23 
24 /*
25 ** Default values.
26 */
27 # define DEF_FUNCTION_SIGMOID (const char *)"sigmoid"
28 # define DEF_FUNCTION_THRESHOLD (const char *)"threshold"
29 # define DEF_DELIMITER_SIZE (const char *)"x"
30 # define DEF_MAX_GETTERS (unsigned int)14
31 # define DEF_GET_CROSSING_RATE (const char *)"crossing_rate"
32 # define DEF_GET_MUTATION_RATE (const char *)"mutation_rate"
33 # define DEF_GET_SELECTION_RATE (const char *)"selection_rate"
34 # define DEF_GET_EXPECTED_FIT (const char *)"expected_fitness"
35 # define DEF_GET_POOL_SIZE (const char *)"tournament pool_size"
36 # define DEF_GET_MAX_EPOCHS (const char *)"max epochs"
37 # define DEF_GET_REPORT_INTER (const char *)"report interval"
38 # define DEF_GET_POPULATION_SIZ (const char *)"population size"
39 # define DEF_GET_ANNINFOS (const char *)"neural network"
40 # define DEF_GET_ACTIVATION (const char *)"activation function"
41 # define DEF_GET_OACTIVATION (const char *)"outputs activation function"
42 # define DEF_GET_ENVIRONMENT_S (const char *)"environment size"
43 # define DEF_GET_TOURNAMENT (const char *)"tournament"
44 # define DEF_GET_DISPLAYMODE (const char *)"display mode"
45 
46 # define DEF_CONST_MINCHAR (char)'a'
47 # define DEF_CONST_MAXCHAR (char)'z'
48 # define DEF_CONST_SPCHAR (char)' '
49 # define DEF_CONST_DELIMCHAR (char)':'
50 # define DEF_CONST_DELIMSTR (const char *)":"
51 # define DEF_CONST_SPACESTR (const char *)" "
52 # define DEF_CONST_DASHCHAR (char)'-'
53 # define DEF_CONST_UNDERSCHAR (char)'_'
54 # define DEF_CONST_MINNUMCHAR (char)'0'
55 # define DEF_CONST_MAXNUMCHAR (char)'9'
56 # define DEF_CONST_DMNONE (const char *)"none"
57 # define DEF_CONST_DM2D_1 (const char *)"2D"
58 # define DEF_CONST_DM2D_2 (const char *)"2d"
59 # define DEF_CONST_ISTOURNAMENT (const char *)"true"
60 
61 #endif /* !APP_CONST_H_ */