An open API service indexing awesome lists of open source software.

https://github.com/doylemark/cooper

Web interface for cloudsimplus simulations
https://github.com/doylemark/cooper

Last synced: 3 months ago
JSON representation

Web interface for cloudsimplus simulations

Awesome Lists containing this project

README

        

# Cooper

Cooper is a Java library and web interface that provides a simple and efficient way to record and analyze [CloudSimPlus](https://github.com/cloudsimplus/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:

```xml

io.github.doylemark
cooper
0.0.1

```

## Quick Start

```java
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

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

# Build the project
mvn clean install
```