Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/FixingsOverview.java @ 3008:9e0500d64524
FixA: Calculate the Delta W/ts + the average Delta W/ts per Q sector per analysis period.
flys-artifacts/trunk@4564 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 30 May 2012 17:59:19 +0000 |
parents | 1b1af1597401 |
children | 5642a83420f2 |
comparison
equal
deleted
inserted
replaced
3007:d520a0869972 | 3008:9e0500d64524 |
---|---|
853 Date date = column.getStartTime(); | 853 Date date = column.getStartTime(); |
854 return start.compareTo(date) <= 0 && end.compareTo(date) >= 0; | 854 return start.compareTo(date) <= 0 && end.compareTo(date) >= 0; |
855 } | 855 } |
856 } // class DateRangeFilter | 856 } // class DateRangeFilter |
857 | 857 |
858 public static class SectorFilter implements Fixing.Filter { | |
859 | |
860 protected int sector; | |
861 | |
862 public SectorFilter(int sector) { | |
863 this.sector = sector; | |
864 } | |
865 | |
866 @Override | |
867 public boolean accept(Fixing.Column column) { | |
868 for (SectorRange s: column.getSectors()) { | |
869 if (s.getSector() == sector) { | |
870 return true; | |
871 } | |
872 } | |
873 return false; | |
874 } | |
875 } // class SectorFilter | |
876 | |
858 public static class SectorRangeFilter implements Fixing.Filter { | 877 public static class SectorRangeFilter implements Fixing.Filter { |
859 | 878 |
860 protected int min; | 879 protected int min; |
861 protected int max; | 880 protected int max; |
862 | 881 |