Exemple #1
0
        public void SaveAgentBinary(Agent agentToSave, GeneticSettings geneticSettings, string filePath)
        {
            SavedAgent savedAgent = new SavedAgent(agentToSave, geneticSettings);

            //string directory = GeneticConstants.INTERNAL_DIRECTORY_AGENTS_BINARY;
            SaveObject(savedAgent, filePath);
        }
Exemple #2
0
        public SavedAgent LoadAgentBinary(string filePath)
        {
            SavedAgent loadedAgent = null;

            loadedAgent = LoadObject <SavedAgent>(filePath);
            return(loadedAgent);
        }