示例#1
0
 /// <summary>
 /// The constructor also creates the queue storing the jobs that the slave
 /// has been asked to evaluate.  It also creates and launches the worker
 /// thread that is communicating with the remote slave to read back the results
 /// of the evaluations.
 /// </summary>
 public SlaveConnection(IEvolutionState state, string slaveName, TcpClient evalSocket,
                        BinaryWriter dataOut, BinaryReader dataIn, ISlaveMonitor slaveMonitor)
 {
     SlaveName    = slaveName;
     EvalSocket   = evalSocket;
     DataOut      = dataOut;
     DataIn       = dataIn;
     State        = state;
     SlaveMonitor = slaveMonitor;
     BuildThreads();
     ShowDebugInfo = slaveMonitor.ShowDebugInfo;
 }
示例#2
0
 private void  InitBlock(IEvolutionState state, ISlaveMonitor enclosingInstance, IMasterProblem problemPrototype)
 {
     _state             = state;
     _enclosingInstance = enclosingInstance;
     _problemPrototype  = problemPrototype;
 }
示例#3
0
 public AnonymousClassRunnable(IEvolutionState state, ISlaveMonitor enclosingInstance, IMasterProblem problemPrototype)
 {
     InitBlock(state, enclosingInstance, problemPrototype);
 }