Cooper is a Java library and web interface that provides a simple and efficient way to record and analyze CloudSimPlus simulations.
- Java 21 or later
- Maven 3.6 or later
- CloudSimPlus 8.5.2 or later
Add Cooper to your Maven project:
<dependency>
<groupId>io.github.doylemark</groupId>
<artifactId>cooper</artifactId>
<version>0.0.1</version>
</dependency>
SimulationRecording recording = new SimulationRecording("Dynamic VMs Arrival");
simulation.startSync();
// Run the simulation and record state at each tick
while (simulation.isRunning()) {
double clock = simulation.runFor(1);
recording.tick(datacenter, clock);
}
// Get the final state as JSON
String output = recording.end(datacenter, simulation.clock());
# Clone the repository
git clone https://github.com/doylemark/cooper.git
cd cooper
# Build the project
mvn clean install