* where the simulation is situated on
* @return the default mutable tree node
*/
public static UserMutableTreeNode simulationInfoToNode(
ComputationTaskIDObject si, ISimulationServer server) {
UserMutableTreeNode node =
new UserMutableTreeNode(new NodeInfo<>(String.format(
"<html><b>Simulation: </b> <i> %s</i></html>", si), si));
try {
node.add(new UserMutableTreeNode(new NodeInfo<>(
String.format("<html><b>experiment ID: </b> <i> %s</i></html>",
server.getSimulationRunProperty(si,
"CONFIGRUATION.EXPERIMENTNUMBER")), si)));
node.add(new UserMutableTreeNode(new NodeInfo<>(String.format(
"<html><b>configuration ID: </b> <i> %s</i></html>",
server.getSimulationRunProperty(si, "CONFIGRUATION.NUMBER")), si)));
node.add(new UserMutableTreeNode(new NodeInfo<>(String.format(
"<html><b>Started at: </b> <i> %s</i></html>",
new Date((Long) server.getSimulationRunProperty(si,
"STARTTIME.WALLCLOCK"))), si)));
node.add(new UserMutableTreeNode(new NodeInfo<>(String.format(
"<html><b>model class: </b> <i> %s</i></html>",
server.getSimulationRunProperty(si, "MODEL.CLASS")), si)));
node.add(new UserMutableTreeNode(new NodeInfo<>(String.format(
"<html><b>model name: </b> <i> %s</i></html>",
server.getSimulationRunProperty(si, "MODEL.NAME")), si)));
node.add(new UserMutableTreeNode(new NodeInfo<>(String.format(
"<html><b>processor class: </b> <i> %s</i></html>",
server.getSimulationRunProperty(si, "PROCESSOR.CLASS")), si)));
} catch (RemoteException e) {
SimSystem.report(e);