/// <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; }
private void InitBlock(IEvolutionState state, ISlaveMonitor enclosingInstance, IMasterProblem problemPrototype) { _state = state; _enclosingInstance = enclosingInstance; _problemPrototype = problemPrototype; }
public AnonymousClassRunnable(IEvolutionState state, ISlaveMonitor enclosingInstance, IMasterProblem problemPrototype) { InitBlock(state, enclosingInstance, problemPrototype); }