package com.smartgwt.sample.client.cube.advanced;

import com.smartgwt.client.widgets.cube.Facet;
import com.smartgwt.client.widgets.cube.FacetValue;

public class FourDimensionFacets {
    public static Facet[] getFourDimensionFacets() {
        // RC1
        Facet rc1 = new Facet();
        rc1.setId("DIM1_OCCUR_NO");
        rc1.setTitle("DIM 1");

        rc1.setValues(
                new FacetValue(){{setId(1);setTitle("1.1");}},
                new FacetValue(){{setId(2);setTitle("1.2");}},
                new FacetValue(){{setId(3);setTitle("1.3");}},
                new FacetValue(){{setId(4);setTitle("1.4");}}
        );

        // RC2
        Facet rc2 = new Facet();
        rc2.setId("DIM2_OCCUR_NO");
        rc2.setTitle("DIM 2");
        
        rc2.setValues(
        		new FacetValue(){{setId(1);setTitle("2.1");}},
        		new FacetValue(){{setId(2);setTitle("2.2");}}
        );

        // RC3
        Facet rc3 = new Facet();
        rc3.setId("DIM3_OCCUR_NO");
        rc3.setTitle("DIM 3");
        
        rc3.setValues(
        		new FacetValue(){{setId(1);setTitle("3.1");}},
        		new FacetValue(){{setId(2);setTitle("3.2");}},
        		new FacetValue(){{setId(3);setTitle("3.3");}},
        		new FacetValue(){{setId(4);setTitle("3.4");}},
        		new FacetValue(){{setId(5);setTitle("3.5");}},
        		new FacetValue(){{setId(6);setTitle("3.6");}},
        		new FacetValue(){{setId(7);setTitle("3.7");}},
        		new FacetValue(){{setId(8);setTitle("3.8");}},
        		new FacetValue(){{setId(9);setTitle("3.9");}},
        		new FacetValue(){{setId(10);setTitle("3.10");}},
        		new FacetValue(){{setId(11);setTitle("3.11");}},
        		new FacetValue(){{setId(12);setTitle("3.12");}},
        		new FacetValue(){{setId(13);setTitle("3.13");}},
        		new FacetValue(){{setId(14);setTitle("3.14");}},
        		new FacetValue(){{setId(15);setTitle("3.15");}},
        		new FacetValue(){{setId(16);setTitle("3.16");}},
        		new FacetValue(){{setId(17);setTitle("3.17");}},
        		new FacetValue(){{setId(18);setTitle("3.18");}},
        		new FacetValue(){{setId(19);setTitle("3.19");}},
        		new FacetValue(){{setId(20);setTitle("3.20");}},
        		new FacetValue(){{setId(21);setTitle("3.21");}},
        		new FacetValue(){{setId(22);setTitle("3.22");}},
        		new FacetValue(){{setId(23);setTitle("3.23");}},
        		new FacetValue(){{setId(24);setTitle("3.24");}},
        		new FacetValue(){{setId(25);setTitle("3.25");}},
        		new FacetValue(){{setId(26);setTitle("3.26");}},
        		new FacetValue(){{setId(27);setTitle("3.27");}},
        		new FacetValue(){{setId(28);setTitle("3.28");}},
        		new FacetValue(){{setId(29);setTitle("3.29");}},
        		new FacetValue(){{setId(30);setTitle("3.30");}},
        		new FacetValue(){{setId(31);setTitle("3.31");}},
        		new FacetValue(){{setId(32);setTitle("3.32");}},
        		new FacetValue(){{setId(33);setTitle("3.33");}},
        		new FacetValue(){{setId(34);setTitle("3.34");}},
        		new FacetValue(){{setId(35);setTitle("3.35");}},
        		new FacetValue(){{setId(36);setTitle("3.36");}},
        		new FacetValue(){{setId(37);setTitle("3.37");}},
        		new FacetValue(){{setId(38);setTitle("3.38");}},
        		new FacetValue(){{setId(39);setTitle("3.39");}},
        		new FacetValue(){{setId(40);setTitle("3.40");}}
        );

        // RC4
        Facet rc4 = new Facet();
        rc4.setId("DIM4_OCCUR_NO");
        rc4.setTitle("DIM 4");

        rc4.setValues(
        		new FacetValue(){{setId(1);setTitle("4.1");}},
        		new FacetValue(){{setId(2);setTitle("4.2");}},
        		new FacetValue(){{setId(3);setTitle("4.3");}},
        		new FacetValue(){{setId(4);setTitle("4.4");}},
        		new FacetValue(){{setId(5);setTitle("4.5");}},
        		new FacetValue(){{setId(6);setTitle("4.6");}},
        		new FacetValue(){{setId(7);setTitle("4.7");}},
        		new FacetValue(){{setId(8);setTitle("4.8");}},
        		new FacetValue(){{setId(9);setTitle("4.9");}},
        		new FacetValue(){{setId(10);setTitle("4.10");}},
        		new FacetValue(){{setId(11);setTitle("4.11");}},
        		new FacetValue(){{setId(12);setTitle("4.12");}},
        		new FacetValue(){{setId(13);setTitle("4.13");}},
        		new FacetValue(){{setId(14);setTitle("4.14");}},
        		new FacetValue(){{setId(15);setTitle("4.15");}},
        		new FacetValue(){{setId(16);setTitle("4.16");}},
        		new FacetValue(){{setId(17);setTitle("4.17");}},
        		new FacetValue(){{setId(18);setTitle("4.18");}},
        		new FacetValue(){{setId(19);setTitle("4.19");}},
        		new FacetValue(){{setId(20);setTitle("4.20");}},
        		new FacetValue(){{setId(21);setTitle("4.21");}},
        		new FacetValue(){{setId(22);setTitle("4.22");}},
        		new FacetValue(){{setId(23);setTitle("4.23");}},
        		new FacetValue(){{setId(24);setTitle("4.24");}},
        		new FacetValue(){{setId(25);setTitle("4.25");}},
        		new FacetValue(){{setId(26);setTitle("4.26");}},
        		new FacetValue(){{setId(27);setTitle("4.27");}},
        		new FacetValue(){{setId(28);setTitle("4.28");}},
        		new FacetValue(){{setId(29);setTitle("4.29");}},
        		new FacetValue(){{setId(30);setTitle("4.30");}},
        		new FacetValue(){{setId(31);setTitle("4.31");}},
        		new FacetValue(){{setId(32);setTitle("4.32");}},
        		new FacetValue(){{setId(33);setTitle("4.33");}},
        		new FacetValue(){{setId(34);setTitle("4.34");}},
        		new FacetValue(){{setId(35);setTitle("4.35");}},
        		new FacetValue(){{setId(36);setTitle("4.36");}},
        		new FacetValue(){{setId(37);setTitle("4.37");}},
        		new FacetValue(){{setId(38);setTitle("4.38");}},
        		new FacetValue(){{setId(39);setTitle("4.39");}},
        		new FacetValue(){{setId(40);setTitle("4.40");}}
        );

        return new Facet[]{rc1, rc2, rc3, rc4};
    }
}
