private void applySkipTest( MapMapMap<Period, String, DimensionalItemObject, Double> dataMap,
Expression skipTest, Map<String, Double> constantMap )
{
if ( skipTest != null && dataMap != null )
{
for ( Period period : dataMap.keySet() )
{
MapMap<String, DimensionalItemObject, Double> periodData = dataMap.get( period );
for ( String aoc : periodData.keySet() )
{
Double testValue = expressionService.getExpressionValue( skipTest, periodData.get( aoc ),
constantMap, null, period.getDaysInPeriod() );
if ( testValue != null && !MathUtils.isZero( testValue ) )
{
periodData.remove( aoc );
}
}
}
}
}