public double getOutcomeValues(IntervalDescription intDesc, String option)
    {
    	double result = 0.0;
    	
    	double minValue = -1.0;
		double maxValue = -1.0;
		double sumValue = 0.0;
		double intervalsCount = 0.0;
		
		for(int i=0; i < intervalsList.size(); i++)
    	{
    		LinkedList<interval> currentList = intervalsList.get(i);
    		if(!currentList.isEmpty())
    		{
    			interval firstInt = currentList.getFirst();
    			if(firstInt.intervalDescription == intDesc)
    			{ 				
    				for(interval interval: currentList)
    				{
    					intervalsCount++;
    					
    					for(IntervalResult intResult: interval.Results)
    					{
    						if(minValue == -1)
    						{
    							minValue = intResult.result;
    						}
    						else
    						{
    							if(intResult.result < minValue)
    							{
    								minValue = intResult.result;
    							}
    						}
    						if(maxValue == -1)
    						{
    							maxValue = intResult.result;
    						}
    						else
    						{
    							if(intResult.result > maxValue)
    							{
    								maxValue = intResult.result;
    							}
    						}
    						sumValue += intResult.result;
    					}
    					
    				}
    				
    				break;
    				
    			}
    		}
    	}
    	
		if(intervalsCount == 0.0)
    	{
    		return 0.0;
    	}
    	else
    	{
    		if(option.equalsIgnoreCase("Max"))
    		{
    			return maxValue;
    		}
    		else if(option.equalsIgnoreCase("Min"))
    		{
    			return minValue;
    		}
    		else if(option.equalsIgnoreCase("Avg"))
    		{
    			double avg = (double)(sumValue/intervalsCount);
    			return avg;
    		}
    	}
		
    	return result;
    }