class AmplNetworkReader {

    private Void readBattery(String[] tokens) {
        int num = Integer.parseInt(tokens[1]);
        int busNum = Integer.parseInt(tokens[2]);
        double p0 = readDouble(tokens[3]);
        double q0 = readDouble(tokens[4]);
        double p = readDouble(tokens[5]);
        double q = readDouble(tokens[6]);

        String id = mapper.getId(AmplSubset.BATTERY, num);
        Battery b = network.getBattery(id);
        if (b == null) {
            throw new AmplException("Invalid battery id '" + id + "'");
        }
        b.setP0(p0);
        b.setQ0(q0);

        Terminal t = b.getTerminal();
        t.setP(p).setQ(q);

        busConnection(t, busNum);

        return null;
    }

    public  AmplNetworkReader(ReadOnlyDataSource dataSource, Network network, int variantIndex, StringToIntMapper<AmplSubset> mapper);
    public  AmplNetworkReader(ReadOnlyDataSource dataSource, Network network, StringToIntMapper<AmplSubset> mapper);

}