Пример #1
0
        public static FourDFieldSubsExperiment GetExperiment(NeatQTableBase qTable, int agentId)
        {
            lock (agentConnectionLock)
            {
                if (s_singleInstance == null)
                {
                    s_singleInstance = new FourDFieldSubsExperiment(8,
                                                                    NeatExpParams.AddBiasToSubstrate ? 4 : 2);
                }

                s_singleInstance.AddAgent(qTable, agentId);
            }
            return(s_singleInstance);
        }
 public override IExperiment CreateExperiment()
 {
     // return null;
     return(FourDFieldSubsExperiment.GetExperiment(this, m_myUnum - 1));
 }