cincamipd/src/main/java/org/ciedayap/pabmm/pd/evaluation/DecisionCriteria.java
private static boolean check(ArrayList<DecisionCriterion> pcriteria)
    {
        if(pcriteria==null || pcriteria.isEmpty() || pcriteria.size()==1) return true;
        pcriteria.sort(null);
        
        for(int i=1;i<pcriteria.size();i++)
        {
            DecisionCriterion previous=pcriteria.get(i-1);
            DecisionCriterion current=pcriteria.get(i);
            
            if(previous.getLowerThreshold().compareTo(current.getLowerThreshold())>=0) return false;//overlaping
            if(previous.getLowerThreshold().compareTo(current.getUpperThreshold())>=0) return false;//containing
            if(previous.getUpperThreshold().compareTo(current.getLowerThreshold())>=0) return false;//overlaping
            if(previous.getUpperThreshold().compareTo(current.getUpperThreshold())>=0) return false;//containing
        }
        
        return true;
    }
/**
     * It is an auxiliar function for verificating the orden in the decision criteria
     * @param pcriteria The list with the decision criteria to be analyzed
     * @return Boolean is all in all the decision crition are not overlapped, FALSE otherwise.
     */
It is an auxiliar function for verificating the orden in the decision criteria
@param pcriteria The list with the decision criteria to be analyzed
@return Boolean is all in all the decision crition are not overlapped, FALSE otherwise.
It is an auxiliar function for verificating the orden in the decision criteria @param pcriteria The list with the decision criteria to be analyzed @return Boolean is all in all the decision crition are not overlapped FALSE otherwise .
private static boolean check(ArrayList<DecisionCriterion> pcriteria)
    {
        if(pcriteria==null || pcriteria.isEmpty() || pcriteria.size()==1) return true;
        pcriteria.sort(null);
        for(int i=1;i<pcriteria.size();i++)
        {
            DecisionCriterion previous=pcriteria.get(i-1);
            DecisionCriterion current=pcriteria.get(i);
            if(previous.getLowerThreshold().compareTo(current.getLowerThreshold())>=0) return false;
            if(previous.getLowerThreshold().compareTo(current.getUpperThreshold())>=0) return false;
            if(previous.getUpperThreshold().compareTo(current.getLowerThreshold())>=0) return false;
            if(previous.getUpperThreshold().compareTo(current.getUpperThreshold())>=0) return false;
        }
        return true;
    }
private static boolean check ( ArrayList < DecisionCriterion > pcriteria ) { if ( pcriteria == null || pcriteria . isEmpty ( ) || pcriteria . size ( ) == 1 ) return true ; pcriteria . sort ( null ) ; for ( int i = 1 ; i < pcriteria . size ( ) ; i ++ ) { DecisionCriterion previous = pcriteria . get ( i - 1 ) ; DecisionCriterion current = pcriteria . get ( i ) ; if ( previous . getLowerThreshold ( ) . compareTo ( current . getLowerThreshold ( ) ) >= 0 ) return false ; if ( previous . getLowerThreshold ( ) . compareTo ( current . getUpperThreshold ( ) ) >= 0 ) return false ; if ( previous . getUpperThreshold ( ) . compareTo ( current . getLowerThreshold ( ) ) >= 0 ) return false ; if ( previous . getUpperThreshold ( ) . compareTo ( current . getUpperThreshold ( ) ) >= 0 ) return false ; } return true ; }
It is an auxiliar function for verificating the orden in the decision criteria
 @param pcriteria The list with the decision criteria to be analyzed
 @return Boolean is all in all the decision crition are not overlapped, FALSE otherwise.
It is an auxiliar function for verificating the orden in the decision criteria @param pcriteria The list with the decision criteria to be analyzed @return Boolean is all in all the decision crition are not overlapped FALSE otherwise .
//overlaping
 //containing
 //overlaping
 //containing
