@@ -0,0 +1,2361 @@
+package com.digiburo.backprop1b.network;%0A%0A/**%0A * Pattern List%0A */%0Aimport java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileOutputStream;%0Aimport java.io.ObjectInputStream;%0Aimport java.io.ObjectOutputStream;%0A%0Aimport java.io.IOException;%0Aimport java.io.FileNotFoundException;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * Pattern List%0A * %0A */%0Apublic class PatternList %7B%0A%09%0A    /**%0A     * mandatory empty ctor%0A     */%0A    public PatternList() %7B%0A    %09//empty%0A    %7D%0A    %0A    /**%0A     * Read the specified pattern file%0A     * %0A     * @param file pattern file%0A     * @throws IOException%0A     * @throws FileNotFoundException%0A     * @throws ClassNotFoundException%0A     */%0A    public PatternList(File file) throws IOException, FileNotFoundException, ClassNotFoundException %7B%0A    %09reader(file);%0A    %7D%0A    %0A    /**%0A     * Add a new element to the list%0A     * %0A     * @param pp pattern to add to list%0A     */%0A    public void add(Pattern pp) %7B%0A    %09_list.add(pp);%0A    %7D%0A    %0A    /**%0A     * Add a new element to the list%0A     * %0A     * @param input input pattern%0A     * @param output output pattern%0A     */%0A    public void add(double%5B%5D input, double%5B%5D output) %7B%0A    %09_list.add(new Pattern(input, output));%0A    %7D%0A    %0A    /**%0A     * Return the specified Pattern%0A     * %0A     * @param index into pattern list, zero is first%0A     * @return the specified Pattern%0A     */%0A    public Pattern get(int index) %7B%0A    %09return(_list.get(index));%0A    %7D%0A    %0A    /**%0A     * Return the element population%0A     * %0A     * @return the element population%0A     */%0A    public int size() %7B%0A    %09return(_list.size());%0A    %7D%0A%0A%09/**%0A%09 * Write patterns as a serialized object%0A%09 * %0A%09 * @param file%0A%09 *            to be written%0A%09 */%0A%09public void writer(File file) throws IOException, FileNotFoundException %7B%0A%09%09ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));%0A%09%09oos.writeObject(_list);%0A%09%09oos.close();%0A%09%7D%0A%0A%09/**%0A%09 * Read serialized pattern%0A%09 * %0A%09 * @param file%0A%09 *            to be read%0A%09 */%0A%09@SuppressWarnings(%22unchecked%22)%0A%09public void reader(File file) throws IOException, FileNotFoundException, ClassNotFoundException %7B%0A%09%09ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));%0A%09%09_list = (ArrayList%3CPattern%3E) ois.readObject();%0A%09%09ois.close();%0A%09%7D%0A    %0A    /**%0A     * Pattern List %0A     */%0A    private ArrayList%3CPattern%3E _list = new ArrayList%3CPattern%3E();%0A%7D%0A%0A

Create PatternList.java