public void UpdateNetwork(BasicNetwork network, decimal networkAccuracy, int numActionsTrained, long currentHandId)
 {
     this.playerNetworkPool = new NNThreadSafeNetworkPool(network, playerId.ToString(), NNThreadSafeNetworkPool.DefaultListLength);
     this.networkAccuracy   = networkAccuracy;
     this.lastUpdatedHandId = currentHandId;
     this.lastUpdatedTime   = DateTime.Now;
     this.numActionsTrained = numActionsTrained;
 }
 public PAPNetworkContainer(long playerId, decimal networkAccuracy, long currentHandId, int numActionsTrained, BasicNetwork network, DateTime lastUpdatedTime)
 {
     this.playerId          = playerId;
     this.playerNetworkPool = new NNThreadSafeNetworkPool(network, playerId.ToString(), NNThreadSafeNetworkPool.DefaultListLength);
     this.lastUpdatedHandId = currentHandId;
     this.lastUpdatedTime   = lastUpdatedTime;
     this.networkAccuracy   = networkAccuracy;
     this.numActionsTrained = numActionsTrained;
 }
        public playerActionPredictionNetworkManager()
        {
            if (InfoProviderBase.CurrentJob == null)
            {
                defaultNetworkPool = new NNThreadSafeNetworkPool(NNLoadSave.loadNetwork("generalPlayer.eNN", PAP_STORE), "default", NNThreadSafeNetworkPool.DefaultListLength);
            }
            else
            {
                //    defaultNetworkPool = new NNThreadSafeNetworkPool(NNLoadSave.loadNetwork(InfoProviders.InfoProviderBase.CurrentJob.JobData.NeuralNetworkBytes("PAP_generalPlayer.eNN")), "default", NNThreadSafeNetworkPool.DefaultListLength);
            }

            if (backgroundWorkerThread != null)
            {
                throw new Exception("The network manager worker thread is already running!");
            }

            //Start the monitor thread
            //backgroundWorkerThread = new Thread(networkBackgroundWorker);
            //backgroundWorkerThread.Name = "PAP_BackgroundWorker";
            //backgroundWorkerThread.Priority = ThreadPriority.BelowNormal;

            //We are not going to start the worker thread at the moment.
            //backgroundWorkerThread.Start();
        }