summaryrefslogtreecommitdiff
path: root/src/domain/EstimatedNetProductionFor.cs
blob: c04635117ccf5c9467fd1b113f93e73b7fe39ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
namespace domain
{
  using utility;

  public class EstimatedNetProductionFor<Commodity> : IValueReturningVisitor<IWell, IQuantity> where Commodity : ICommodity, new()
  {
    Month month;
    IQuantity result;

    public EstimatedNetProductionFor(Month month)
    {
      this.month = month;
      result = new Quantity(0, new BOED());
    }

    public void Visit(IWell well)
    {
      result = result.Plus(well.NetProductionFor<Commodity>(month));
    }

    public IQuantity Result()
    {
      return this.result;
    }
  }
}