public final class WSSimulator
extends java.lang.Object
| Constructor and Description |
|---|
WSSimulator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addSimulation(java.io.File echoSimulationAsYaml)
Adds a simulation from a YAML file
|
static void |
addSimulation(java.lang.String yamlString)
Apply a simulation to be emulated
|
static void |
addSimulation(WSSimulation WSSimulation)
Apply a simulation to be emulated
|
static void |
addSimulations(java.util.Collection<java.io.File> simulations)
adds a collection of simulations to the simulator.
|
static int |
loadedSimulationCount()
Returns the count of all simulations that are loaded within the simulator.
|
static void |
setPort(int port)
Sets the port to start the http server.
|
static void |
shutdown()
Shuts down the simulator
|
public static void addSimulation(@NotNull
java.lang.String yamlString)
yamlString - YAML as a Stringpublic static void addSimulation(@NotNull
WSSimulation WSSimulation)
WSSimulation - the WSSimulationpublic static void addSimulation(@NotNull
java.io.File echoSimulationAsYaml)
echoSimulationAsYaml - the yaml filepublic static void shutdown()
public static void setPort(int port)
port - the port numberpublic static void addSimulations(java.util.Collection<java.io.File> simulations)
simulations - the collection of files to add to the emaulatorpublic static int loadedSimulationCount()