This package contains all of the code for the web server that wraps the simulator
Route for the website.
Return the list of simulations on the server.
Create a new simulation.
Updates notes recorded about this list of simulations.
Return a specific simulation. Contains the network options for the network if set.
Updates details about the specified simulation.
Deletes the specified simulation
Generates a hierarchical network to be simulated in an existing simulation. There should be no existing steps within the simulation otherwise this request will fail. Returns the created first step that contains the generated network and the initial color results for the generated network.
Parses a network from a byte array to be simulated in an existing simulation. There should be no existing steps within the simulation otherwise this request will fail. Returns the created first step that contains the generated network and the initial color results for the generated network.
Creates a new copy of the specified simulation and the initial simulation step if it exists. This will not copy any subsequent steps in the simulation being copied.
Parses a list of relationships from a byte array and adds them to the network on the
latest step of the simulation. This modifies the network in the latest step. Unlike
parse and generate this will not fail if steps exist, this will fail if at least one
step with a valid network does not already exist. Note also this can only be used to add
new edges to the network. If any of the parsed links reference an agent that doesn't
already exist on the network, this will fail.
Runs the simulation for a specified number of steps, each step runs a specified number of iterations.
Returns the list of steps in this simulation. This returns the actual content of the steps
as opposed to the list of step paths that is returned in GET /api/simulation/{sim_id}
Returns the concatenated set of results for all the steps in this simulation.
Returns the specified step which contains the results for that step and the state of the network at the end of that step.
Updates the results and network state in the specified step
Deletes the specified step
Returns the full network structure at the end of this step.
Updates only the network structure at the end of this step.
Returns the agent color and state data for this step (typically used for animations).