Package cambio.simulator.models
Class ExperimentModel
java.lang.Object
cambio.simulator.models.ExperimentModel
Represents the experiment model.
- Author:
- Lion Wagner
-
Constructor Summary
ConstructorsConstructorDescriptionExperimentModel
(Collection<LoadGeneratorDescriptionExecutor> generators, Collection<ExperimentAction> experimentActions) Creates a new experiment model based on the given the collections ofLoadGeneratorDescriptionExecutor
s andExperimentAction
s. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ExperimentModel
fromScheduleEntities
(MiSimModel baseModel, @NotNull Collection<ISelfScheduled> selfSchedulers) Creates a new Experiment model based on the given set of ISelfScheduled objects.<T> Set<T>
getAllObjectsOfType
(Class<T> clazz) Deprecated.Collects all self scheduling entities from the experiment, so they can be scheduled during the initial scheduling of the model.
-
Constructor Details
-
ExperimentModel
public ExperimentModel(Collection<LoadGeneratorDescriptionExecutor> generators, Collection<ExperimentAction> experimentActions) Creates a new experiment model based on the given the collections ofLoadGeneratorDescriptionExecutor
s andExperimentAction
s.
-
-
Method Details
-
fromScheduleEntities
@Contract("_, _ -> new") @NotNull public static @NotNull ExperimentModel fromScheduleEntities(MiSimModel baseModel, @NotNull @NotNull Collection<ISelfScheduled> selfSchedulers) Creates a new Experiment model based on the given set of ISelfScheduled objects.Looks for
LoadGeneratorDescription
s andExperimentAction
s within the set and adds them to a new Experiment model.- Parameters:
baseModel
- parent model of the resulting ExperimentModel and potentially createdExperimentAction
sselfSchedulers
- entities that should be part of the new ExperimentModel- Returns:
- a new experiment model always. It may be empty if no selfSchedulers or wrongly typed ones are given.
-
getAllSelfSchedulesEntities
Collects all self scheduling entities from the experiment, so they can be scheduled during the initial scheduling of the model.- Returns:
- all self scheduling entities from the experiment
- See Also:
-
getAllObjectsOfType
Deprecated.Retrieves allExperimentAction
s that extend the given class. E.g.ISelfScheduled
.This may be removed in future update, use
getAllSelfSchedulesEntities()
instead.
-