All Data Structures Files Functions Variables Enumerations Enumerator Properties Defines
Public Member Functions | Static Public Member Functions | Protected Attributes
DataManager Class Reference

#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

Detailed Description

Definition at line 15 of file DataManager.h.


Member Function Documentation

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

Parameters:
learningtype
Returns:
the average

Definition at line 121 of file DataManager.m.

Works out the average actions per episode (non-learning) for the passed learning type

Parameters:
learningtype
Returns:
the average

Definition at line 131 of file DataManager.m.

- (float) averageAgentsSaved: (MachineLearningType _learningType

Works out the average agents saved for the passed learning type

Parameters:
learningtype
Returns:
the average

Definition at line 141 of file DataManager.m.

Works out the average episode time for the passed learning type

Parameters:
learningtype
Returns:
the average

Definition at line 100 of file DataManager.m.

Works out the average episode time (non-learning) for the passed learning type

Parameters:
learningtype
Returns:
the average

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.

Returns the DataManager instance

Returns:
the instance

Definition at line 82 of file DataManager.m.


Field Documentation

- (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.


The documentation for this class was generated from the following files: