![]() |
00001 // 00002 // DataManager.h 00003 // Author: Thomas Taylor 00004 // 00005 // Manages saving the game data 00006 // 00007 // 21/02/2012: Created class 00008 // 00009 00010 #import "cocos2d.h" 00011 #import "CommonDataTypes.h" 00012 #import "Constants.h" 00013 #import "LemmingManager.h" 00014 00015 @interface DataManager : NSObject 00016 00017 { 00018 // a sub-dictionary for each learning type 00019 NSMutableDictionary* reinforcementData; 00020 NSMutableDictionary* decisionTreeData; 00021 NSMutableDictionary* shortestRouteData; 00022 NSMutableDictionary* noLearningData; 00023 } 00024 00025 +(DataManager*)sharedDataManager; 00026 -(int)averageEpisodeTimeLearning:(MachineLearningType)_learningType; 00027 -(int)averageEpisodeTimeNonLearning:(MachineLearningType)_learningType; 00028 -(int)averageActionsLearning:(MachineLearningType)_learningType; 00029 -(int)averageActionsNonLearning:(MachineLearningType)_learningType; 00030 -(float)averageAgentsSaved:(MachineLearningType)_learningType; 00031 -(void)addCurrentGameData; 00032 -(void)loadGameData; 00033 -(void)clearGameData; 00034 -(void)exportGameData; 00035 -(void)printData; 00036 00037 @end