APISonar


aima.gui.swing.framework.MessageLogger.log

> aima > gui > swing > framework > MessageLogger > log
aima APIs gui APIs swing APIs framework APIs MessageLogger APIs log APIs

Example 1
public void run(MessageLogger logger) {
		logger.log("<simulation-log>");
		try {
			while (!env.isDone() && !frame.simulationPaused()) {
				Thread.sleep(500);
				env.step();
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		logger.log("Performance: "
				+ env.getPerformanceMeasure(agent));
		logger.log("</simulation-log>\n");
	}