private int pGetInt(properties_i p)
    {
        int ret = 0;

        switch (p)
        {
        case properties_i.csv:
            ret = generateCSV;
            break;

        case properties_i.external:
            ret = generateExternal;
            break;

        case properties_i.externalType:
            ret = externalType;
            break;

        case properties_i.externalCriteria:
            ret = externalCriteria;
            break;

        case properties_i.externalCritCond1:
            ret = extCritCondition1;
            break;

        case properties_i.externalCritCond2:
            ret = extCritCondition2;
            break;

        case properties_i.externalCritCond3:
            ret = extCritCondition3;
            break;

        case properties_i.externalCritCond4:
            ret = extCritCondition4;
            break;

        case properties_i.greedy:
            ret = greedyMode;
            break;

        case properties_i.results:
            ret = displayResults;
            break;

        case properties_i.shape:
            ret = displayShape;
            break;
        }

        return(ret);
    }
    private void pDefaultInt(properties_i p)
    {
        switch (p)
        {
        case properties_i.csv:
            generateCSV = default_generateCSV;
            break;

        case properties_i.greedy:
            greedyMode = default_greedyMode;
            break;

        case properties_i.results:
            displayResults = default_displayResults;
            break;

        case properties_i.shape:
            displayShape = default_displayShape;
            break;

        case properties_i.external:
            generateExternal = default_generateExternal;
            break;

        case properties_i.externalCriteria:
            externalCriteria = 0;
            break;

        case properties_i.externalCritCond1:
            extCritCondition1 = 0;
            break;

        case properties_i.externalCritCond2:
            extCritCondition2 = 0;
            break;

        case properties_i.externalCritCond3:
            extCritCondition3 = 0;
            break;

        case properties_i.externalCritCond4:
            extCritCondition4 = 0;
            break;

        case properties_i.externalType:
            externalType = default_externalType;
            break;
        }
    }
    private void pSetInt(properties_i p, int val)
    {
        switch (p)
        {
        case properties_i.csv:
            generateCSV = val;
            break;

        case properties_i.external:
            generateExternal = val;
            break;

        case properties_i.externalType:
            externalType = val;
            break;

        case properties_i.externalCriteria:
            externalCriteria = val;
            break;

        case properties_i.externalCritCond1:
            extCritCondition1 = val;
            break;

        case properties_i.externalCritCond2:
            extCritCondition2 = val;
            break;

        case properties_i.externalCritCond3:
            extCritCondition3 = val;
            break;

        case properties_i.externalCritCond4:
            extCritCondition4 = val;
            break;

        case properties_i.greedy:
            greedyMode = val;
            break;

        case properties_i.results:
            displayResults = val;
            break;

        case properties_i.shape:
            displayShape = val;
            break;
        }
    }
Example #4
0
 private int pGetValue(properties_i p)
 {
     int ret = 0;
     switch (p)
     {
         case properties_i.col:
             ret = col;
             break;
         case properties_i.row:
             ret = row;
             break;
         case properties_i.max:
             ret = max;
             break;
     }
     return ret;
 }
    private int pGetDefaultInt(properties_i p)
    {
        int ret = 0;

        switch (p)
        {
        case properties_i.csv:
            ret = default_generateCSV;
            break;

        case properties_i.external:
            ret = default_generateExternal;
            break;

        case properties_i.externalType:
            ret = default_externalType;
            break;

        case properties_i.externalCriteria:
        case properties_i.externalCritCond1:
        case properties_i.externalCritCond2:
        case properties_i.externalCritCond3:
        case properties_i.externalCritCond4:
            ret = 0;
            break;

        case properties_i.greedy:
            ret = default_greedyMode;
            break;

        case properties_i.results:
            ret = default_displayResults;
            break;

        case properties_i.shape:
            ret = default_displayShape;
            break;
        }

        return(ret);
    }
    private int pGetValue(properties_i p)
    {
        int ret = 0;

        switch (p)
        {
        case properties_i.cSeg:
            ret = cornerSegments;
            break;

        case properties_i.linkCDU:
            ret = linkTipandSideCDU;
            break;

        case properties_i.nCases:
            ret = numberOfCases;
            break;

        case properties_i.optC:
            ret = optimizeCorners;
            break;

        case properties_i.oType:
            ret = outputType;
            break;

        case properties_i.rngType:
            ret = rngType;
            break;

        case properties_i.subMode:
            ret = subMode;
            break;

        case properties_i.ler:
            ret = lerFromLWR_by_sqrt2;
            break;
        }

        return(ret);
    }
    private void pSetValue(properties_i p, int val)
    {
        switch (p)
        {
        case properties_i.cSeg:
            cornerSegments = val;
            break;

        case properties_i.linkCDU:
            linkTipandSideCDU = val;
            break;

        case properties_i.nCases:
            numberOfCases = val;
            break;

        case properties_i.optC:
            optimizeCorners = val;
            break;

        case properties_i.oType:
            outputType = val;
            break;

        case properties_i.rngType:
            rngType = val;
            break;

        case properties_i.subMode:
            subMode = val;
            break;

        case properties_i.ler:
            lerFromLWR_by_sqrt2 = val;
            break;
        }
    }
    private void pDefaultValue(properties_i p)
    {
        switch (p)
        {
        case properties_i.cSeg:
            cornerSegments = default_cornerSegments;
            break;

        case properties_i.ler:
            lerFromLWR_by_sqrt2 = default_lerFromLWR_by_sqrt2;
            break;

        case properties_i.linkCDU:
            linkTipandSideCDU = default_linkTipandSideCDU;
            break;

        case properties_i.nCases:
            numberOfCases = default_numberOfCases;
            break;

        case properties_i.optC:
            optimizeCorners = default_optimizeCorners;
            break;

        case properties_i.oType:
            outputType = default_outputType;
            break;

        case properties_i.rngType:
            rngType = default_rngType;
            break;

        case properties_i.subMode:
            subMode = default_subMode;
            break;
        }
    }
Example #9
0
 public int getValue(properties_i p)
 {
     return pGetValue(p);
 }
 public int getDefaultInt(properties_i p)
 {
     return(pGetDefaultInt(p));
 }
 public void defaultInt(properties_i p)
 {
     pDefaultInt(p);
 }
 public void setInt(properties_i p, int val)
 {
     pSetInt(p, val);
 }
 public void setValue(properties_i p, int val)
 {
     pSetValue(p, val);
 }
 public int getDefaultValue(properties_i p)
 {
     return(pGetDefaultValue(p));
 }
 public void defaultValue(properties_i p)
 {
     pDefaultValue(p);
 }