Class SimulationBuilder
- java.lang.Object
-
- de.unistuttgart.informatik.fius.icge.simulation.SimulationBuilder
-
public class SimulationBuilder extends Object
The factory for creating a simulation host.- Author:
- Tim Neumann
-
-
Constructor Summary
Constructors Constructor Description SimulationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildSimulation()
Actually build the simulation.Simulation
getBuiltSimulation()
Get the simulation that was built.boolean
hasBuiltSimulation()
Get whether the window has been built.void
setTaskVerifier(TaskVerifier taskVerifier)
Set the task verifier to use with this simulation.
-
-
-
Method Detail
-
setTaskVerifier
public void setTaskVerifier(TaskVerifier taskVerifier)
Set the task verifier to use with this simulation.This method can only be called before building the simulation. It is not possible to change it after the simulation has been built.
- Parameters:
taskVerifier
- The task verifier to use
-
buildSimulation
public void buildSimulation()
Actually build the simulation.This can only be called once for each simulation builder.
-
hasBuiltSimulation
public boolean hasBuiltSimulation()
Get whether the window has been built.- Returns:
- true if and only if the window has been built
-
getBuiltSimulation
public Simulation getBuiltSimulation()
Get the simulation that was built.This method can only be called after
buildSimulation()
.- Returns:
- The created
Simulation
-
-