Esempio n. 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);
        }
Esempio n. 2
0
        public SavedAgent LoadAgentBinary(string filePath)
        {
            SavedAgent loadedAgent = null;

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