// connect both
model.connectToExperiment(exp);
// set experiment parameters
exp.setShowProgressBar(true); // display a progress bar (or not)
exp.stop(new TimeInstant(150000, TimeUnit.MINUTES)); // set end of
// simulation at
// 1500 minutes
exp.tracePeriod(new TimeInstant(0), new TimeInstant(100, TimeUnit.MINUTES)); // set
// the
// period
// of
// the
// trace
exp.debugPeriod(new TimeInstant(0), new TimeInstant(50, TimeUnit.MINUTES)); // and
// debug
// output
// ATTENTION!
// Don't use too long periods. Otherwise a huge HTML page will
// be created which crashes Netscape :-)