title: Best pattern to update an object each iteration of an algorithm
body: <p>I have an algorithm that alters the state of an object each generation, depending on some semi-random modifications made to a list. I made a simplification to be clearer, so assume I have two class:</p>
  
  <pre><code>public class Archive{
  
  ...
  
  }
  
  public class Operation{
  
  ...
  
  }
  </code></pre>
  
  <p>In another class,<code>Algorithm</code>, a method iterates, make some adjustments to a <code>List&lt;Operation&gt;</code> (similar to Genetic Algorithm crossovers and mutations). This list among with other objects related are used to update an <code>Archive</code>object, making a lot of calculations and modifications to the <code>Archive</code> object. </p>
  
  <p>In the current version of my code I have a <code>ArchiveUpdate</code>class that has a internal <code>Archive</code> object and a method that receives ALL the objects used in the update to change the Archive. I think this way is kinda fuzzy and I can't think of another way of doing this better, can anybody help?</p>