private boolean interfaceEnabled(Interface component) { // interfaceIsSelected
        if (component.valueCompareType == null) {
            return false;
        }
        for (int i = 0; i < component.valueCompareType.length; i++) {
            int j = extractInterfaceValues(component, i);
            int k = component.requiredValues[i];
            if (component.valueCompareType[i] == 2) {
                if (j >= k) {
                    return false;
                }
            } else if (component.valueCompareType[i] == 3) {
                if (j <= k) {
                    return false;
                }
            } else if (component.valueCompareType[i] == 4) {
                if (j == k) {
                    return false;
                }
            } else if (j != k) {
                return false;
            }
        }
        return true;
    }