public PropagationRuleBase getPropagationRule(){
        if (this.panel.btnLPARule.isSelected())
            return new LPAPropagationRule(this.clusterer);
        else if (this.panel.btnLPArRule.isSelected())
            return new LPArPropagationRule(this.clusterer);
        else 
        {
            double resolutionParameter = 1;
            try{
                String value = this.panel.txtResolutionParameter.getText();
                Long result = Long.parseLong(value);
                resolutionParameter = result;
            }
            catch(Exception ex){
                this.panel.txtResolutionParameter.setText("1");
            }
            return new LPAmPropagationRule(this.clusterer, resolutionParameter);
        }
    }