public Object calculate(List<RouteLeg> route)
	{
		RouteLength length = new RouteLength(0);
		for (RouteLeg currentRouteLeg : route)
		{
			Connection foundConnection = graph.findConnection(currentRouteLeg);
			if (foundConnection == null)
			{
				return new RouteLength();
			}
			length = length.plus(foundConnection.getLength());
		}
		return length;
	}