View Javadoc
1   package com.github.celldynamics.quimp.filesystem;
2   
3   import java.util.ArrayList;
4   
5   import com.github.celldynamics.quimp.plugin.ana.ANAp;
6   
7   /**
8    * Serialization container for {@link com.github.celldynamics.quimp.plugin.ana.ANAp}.
9    * 
10   * @author p.baniukiewicz
11   *
12   */
13  public class ANAParamCollection implements IQuimpSerialize {
14    /**
15     * Array of configuration options for every cell present in the image.
16     */
17    public ArrayList<ANAp> aS;
18  
19    /**
20     * Default constructor.
21     * 
22     * <p>Create empty store for {@link ANAp} configurations.
23     */
24    public ANAParamCollection() {
25      aS = new ArrayList<>();
26    }
27  
28    /**
29     * Create <tt>size</tt> elements in store for {@link ANAp} configurations.
30     * 
31     * <p>Size of the store usually equals to the number of cells in the image.
32     * 
33     * @param size size of the collection
34     */
35    public ANAParamCollection(int size) {
36      aS = new ArrayList<ANAp>(size);
37      for (int i = 0; i < size; i++) {
38        aS.add(new ANAp());
39      }
40    }
41  
42    /*
43     * (non-Javadoc)
44     * 
45     * @see com.github.celldynamics.quimp.filesystem.IQuimpSerialize#beforeSerialize()
46     */
47    @Override
48    public void beforeSerialize() {
49  
50    }
51  
52    /*
53     * (non-Javadoc)
54     * 
55     * @see com.github.celldynamics.quimp.filesystem.IQuimpSerialize#afterSerialize()
56     */
57    @Override
58    public void afterSerialize() throws Exception {
59  
60    }
61  
62  }