src-gu/mir-reasoner/src/possibleworlds/PossibleWorldsBruteForce.java
//Takes in one possible world combination and creates a new articulation based on it
Takes in one possible world combination and creates a new articulation based on it
Takes in one possible world combination and creates a new articulation based on it
private LinkedHashMap<TaxonPair, String> createNewArticulation(Map<Integer, Character> currentCombo){
		LinkedHashMap<TaxonPair, String> newArticulation = new LinkedHashMap<TaxonPair, String>();
		Taxon subjectTaxon, objectTaxon;
		for(int i = 0; i < inputRelations.size(); i++){
			subjectTaxon = inputResults.getT1().getTaxon(inputRelations.get(i).getSubjectClassname());
			objectTaxon = inputResults.getT2().getTaxon(inputRelations.get(i).getObjectClassname());
			String predicate;
			if(currentCombo.containsKey(i)){
				predicate = currentCombo.get(i) + "";
			}
			else{
				predicate = inputRelations.get(i).getPredicate();
			}
			newArticulation.put(new TaxonPair(subjectTaxon, objectTaxon), predicate);
		}
		return newArticulation;
	}
private LinkedHashMap < TaxonPair , String > createNewArticulation ( Map < Integer , Character > currentCombo ) { LinkedHashMap < TaxonPair , String > newArticulation = new LinkedHashMap < TaxonPair , String > ( ) ; Taxon subjectTaxon , objectTaxon ; for ( int i = 0 ; i < inputRelations . size ( ) ; i ++ ) { subjectTaxon = inputResults . getT1 ( ) . getTaxon ( inputRelations . get ( i ) . getSubjectClassname ( ) ) ; objectTaxon = inputResults . getT2 ( ) . getTaxon ( inputRelations . get ( i ) . getObjectClassname ( ) ) ; String predicate ; if ( currentCombo . containsKey ( i ) ) { predicate = currentCombo . get ( i ) + "" ; } else { predicate = inputRelations . get ( i ) . getPredicate ( ) ; } newArticulation . put ( new TaxonPair ( subjectTaxon , objectTaxon ) , predicate ) ; } return newArticulation ; }
Takes in one possible world combination and creates a new articulation based on it
Takes in one possible world combination and creates a new articulation based on it