*/
List<Pair<String, Object>> extractAlgorithmParameters(
Class<? extends Factory<?>> factory, ParameterBlock parameterBlock) {
List<Pair<String, Object>> parameterAssignments =
new ArrayList<>();
IFactoryInfo facInfo =
SimSystem.getRegistry().getFactoryInfo(factory.getName());
if (facInfo == null) {
return parameterAssignments;
}
List<IParameter> parameters = facInfo.getParameters();
for (IParameter parameter : parameters) {
if (parameterBlock.hasSubBlock(parameter.getName())) {
// TODO: One could also implement type-checking here... but maybe that's
// too strict
Object o = parameterBlock.getSubBlockValue(parameter.getName());