Skip to content

doylemark/cooper

Repository files navigation

Cooper

Cooper is a Java library and web interface that provides a simple and efficient way to record and analyze CloudSimPlus simulations.

Requirements

  • Java 21 or later
  • Maven 3.6 or later
  • CloudSimPlus 8.5.2 or later

Installation

Add Cooper to your Maven project:

<dependency>
    <groupId>io.github.doylemark</groupId>
    <artifactId>cooper</artifactId>
    <version>0.0.1</version>
</dependency>

Quick Start

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());

Building from Source

# Clone the repository
git clone https://github.com/doylemark/cooper.git
cd cooper

# Build the project
mvn clean install