use of io.engineblock.activityapi.core.ActivitiesAware in project engineblock by engineblock.
the class CoreInputDispenser method createInput.
private synchronized Input createInput(long slot) {
SimpleConfig conf = new SimpleConfig(activity, "input");
String inputType = conf.getString("type").orElse("targetrate");
InputType inputTypeImpl = InputType.FINDER.getOrThrow(inputType);
InputDispenser inputDispenser = inputTypeImpl.getInputDispenser(activity);
if (inputDispenser instanceof ActivitiesAware) {
((ActivitiesAware) inputDispenser).setActivitiesMap(activities);
}
Input input = inputDispenser.getInput(slot);
return input;
}
Aggregations