@@ -0,0 +1,1331 @@
+package etomica.config;%0A%0Aimport etomica.api.IAtomList;%0Aimport etomica.box.Box;%0Aimport etomica.space.Vector;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.util.Arrays;%0A%0A/**%0A *%0A */%0Apublic class ConfigurationResourceFile implements Configuration %7B%0A%0A    private final String fileName;%0A    private final Class callingClass;%0A%0A    /**%0A     *%0A     * @param fileName%0A     * @param callingClass%0A     */%0A    public ConfigurationResourceFile(String fileName, Class callingClass) %7B%0A        this.fileName = fileName;%0A        this.callingClass = callingClass;%0A    %7D%0A%0A    @Override%0A    public void initializeCoordinates(Box box) %7B%0A        IAtomList leafList = box.getLeafList();%0A        try(BufferedReader reader =%0A                    new BufferedReader(new InputStreamReader(callingClass.getResourceAsStream(fileName)))) %7B%0A%0A            for(int i = 0; i %3C leafList.getAtomCount(); i++) %7B%0A                Vector pos = leafList.getAtom(i).getPosition();%0A                pos.E(parseLine(reader.readLine()));%0A            %7D%0A        %7D catch(IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A    %7D%0A%0A    private static double%5B%5D parseLine(String line) %7B%0A        return Arrays.stream(line.split(%22%5C%5Cs+%22))%0A                .mapToDouble(Double::valueOf)%0A                .toArray();%0A    %7D%0A%7D%0A

Add ConfigurationResourceFile