NetDEM v1.0
Loading...
Searching...
No Matches
command_create.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "command.hpp"
4#include "shape_sphere.hpp"
5
6namespace netdem {
7
20class CommandCreate : public Command {
21public:
32 CommandCreate(nlohmann::json const &info, Simulation *sim);
33
41 void Execute() override;
42};
43
44} // namespace netdem
A command class to create an object in the simulation.
Definition command_create.hpp:20
CommandCreate(nlohmann::json const &info, Simulation *sim)
Constructs a new CommandCreate object with the given information and simulation object.
Definition command_create.cpp:8
void Execute() override
Creates the object in the simulation.
Definition command_create.cpp:11
A base class for commands that can modify a simulation based on provided JSON information.
Definition command.hpp:21
Simulation * sim
A pointer to the simulation object.
Definition command.hpp:27
nlohmann::json info
The information associated with the command.
Definition command.hpp:24
Class for managing a DEM simulation.
Definition simulation.hpp:21
Definition bond_entry.hpp:7