#import <DataManager.h>
Public Member Functions | |
(int) | - averageEpisodeTimeLearning: |
(int) | - averageEpisodeTimeNonLearning: |
(int) | - averageActionsLearning: |
(int) | - averageActionsNonLearning: |
(float) | - averageAgentsSaved: |
(void) | - addCurrentGameData |
(void) | - loadGameData |
(void) | - clearGameData |
(void) | - exportGameData |
(void) | - printData |
Static Public Member Functions | |
(DataManager *) | + sharedDataManager |
Protected Attributes | |
NSMutableDictionary * | reinforcementData |
NSMutableDictionary * | decisionTreeData |
NSMutableDictionary * | shortestRouteData |
NSMutableDictionary * | noLearningData |
Definition at line 15 of file DataManager.h.
- (void) addCurrentGameData |
Adds the current data to the appropriate dictionary
Definition at line 199 of file DataManager.m.
- (int) averageActionsLearning: | (MachineLearningType) | _learningType |
Works out the average actions per episode for the passed learning type
learning | type |
Definition at line 121 of file DataManager.m.
- (int) averageActionsNonLearning: | (MachineLearningType) | _learningType |
Works out the average actions per episode (non-learning) for the passed learning type
learning | type |
Definition at line 131 of file DataManager.m.
- (float) averageAgentsSaved: | (MachineLearningType) | _learningType |
Works out the average agents saved for the passed learning type
learning | type |
Definition at line 141 of file DataManager.m.
- (int) averageEpisodeTimeLearning: | (MachineLearningType) | _learningType |
Works out the average episode time for the passed learning type
learning | type |
Definition at line 100 of file DataManager.m.
- (int) averageEpisodeTimeNonLearning: | (MachineLearningType) | _learningType |
Works out the average episode time (non-learning) for the passed learning type
learning | type |
Definition at line 111 of file DataManager.m.
- (void) clearGameData |
Clears any previously saved data
Definition at line 299 of file DataManager.m.
- (void) exportGameData |
Exports the saved data to GameData.plist
Definition at line 308 of file DataManager.m.
- (void) loadGameData |
Loads the saved stats from the previous games
Definition at line 272 of file DataManager.m.
- (void) printData |
Displays the saved data
Definition at line 321 of file DataManager.m.
+ (DataManager *) sharedDataManager |
- (NSMutableDictionary*) decisionTreeData [protected] |
Definition at line 20 of file DataManager.h.
- (NSMutableDictionary*) noLearningData [protected] |
Definition at line 22 of file DataManager.h.
- (NSMutableDictionary*) reinforcementData [protected] |
Definition at line 19 of file DataManager.h.
- (NSMutableDictionary*) shortestRouteData [protected] |
Definition at line 21 of file DataManager.h.