Package se.sics.kompics.simulator.result
Class SimulationResultSingleton
java.lang.Object
se.sics.kompics.simulator.result.SimulationResultSingleton
- All Implemented Interfaces:
SimulationResultMap
public class SimulationResultSingleton extends Object implements SimulationResultMap
A singleton instance, that can provide access to values accross different class loaders.
Use to pass reesults from a simulation back to the testing code that spawned the simulation.
Freely adapted from here.
- Author:
- Lars Kroll <[email protected]>
-
Method Summary
Modifier and Type Method Description <T> T
get(String key, Class<T> tpe)
static SimulationResultMap
getInstance()
void
put(String key, Object o)
-
Method Details
-
getInstance
-
put
- Specified by:
put
in interfaceSimulationResultMap
-
get
- Specified by:
get
in interfaceSimulationResultMap
-