class Simulation extends AbstractScesimModel<Scenario> {

    @Override
    public Scenario addData(int index) {
        if (index < 0 || index > scesimData.size()) {
            throw new IndexOutOfBoundsException(new StringBuilder().append("Index out of range ").append(index).toString());
        }
        Scenario scenario = new Scenario();
        scesimData.add(index, scenario);
        return scenario;
    }

}