public void activateHeatBath(boolean b) {
		if (b) {
			if (heatBath == null)
				heatBath = new HeatBath(this);
			if (job == null)
				initializeJob();
			if (job.isStopped()) {
				if (!job.contains(heatBath))
					job.add(heatBath);
			} else {
				if (!job.toBeAdded(heatBath) && !job.contains(heatBath))
					job.add(heatBath);
			}
		} else {
			if (heatBath != null && job != null) {
				job.remove(heatBath);
				heatBath.setCompleted(true);
				heatBath = null;
			}
		}
		if (job != null && job.isStopped())
			job.processPendingRequests();
	}