de.tuberlin.uebb.jdae.dae.Examples.java Source code

Java tutorial

Introduction

Here is the source code for de.tuberlin.uebb.jdae.dae.Examples.java

Source

/*
 * Copyright (C) 2012 uebb.tu-berlin.de.
 *
 * This file is part of modim
 *
 * modim is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * modim is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with modim. If not, see <http://www.gnu.org/licenses/>.
 */
package de.tuberlin.uebb.jdae.dae;

import java.util.Map;

import com.google.common.collect.ImmutableMap;

import de.tuberlin.uebb.jdae.examples.*;

public final class Examples {

    private static final Map<String, Class<? extends LoadableModel>> examples() {
        final ImmutableMap.Builder<String, Class<? extends LoadableModel>> builder = ImmutableMap.builder();
        builder.put("BouncingBall", BouncingBall.class);
        builder.put("Pendulum", Pendulum.class);
        return builder.build();
    }

    public static final Map<String, Class<? extends LoadableModel>> EXAMPLE_MODELS = examples();

}