src-gu/mir-reasoner/src/possibleworlds/PossibleWorlds.java
//Creates new relations for the new input file based on the chosen multiple relation.
Creates new relations for the new input file based on the chosen multiple relation.
Creates new relations for the new input file based on the chosen multiple relation .
private List<SimpleRelation> createRelations(){
		char[] firstMultRel = multipleRelations.values().iterator().next();
		Iterator<char[]> multRelIterator = multipleRelations.values().iterator();
		Iterator<Integer> multRelKeyIterator = multipleRelations.keySet().iterator();
		for(int j = 0; j < relationIndex; j++){
			multRelIterator.next();
			multRelKeyIterator.next();
		}
		char[] chosenMultRel = multRelIterator.next();
		int index = multRelKeyIterator.next();
		List<SimpleRelation> relations = new ArrayList<SimpleRelation>();
		Taxon subjectTaxon = inputResults.getT1().getTaxon(inputRelations.get(index).getSubjectClassname());
		Taxon objectTaxon = inputResults.getT2().getTaxon(inputRelations.get(index).getObjectClassname());
		for(int i = 0; i < chosenMultRel.length; i++){
			relations.add(new SimpleRelation(subjectTaxon.toString(), chosenMultRel[i]+"", objectTaxon.toString()));
		}
		return relations;
	}
private List < SimpleRelation > createRelations ( ) { char [ ] firstMultRel = multipleRelations . values ( ) . iterator ( ) . next ( ) ; Iterator < char [ ] > multRelIterator = multipleRelations . values ( ) . iterator ( ) ; Iterator < Integer > multRelKeyIterator = multipleRelations . keySet ( ) . iterator ( ) ; for ( int j = 0 ; j < relationIndex ; j ++ ) { multRelIterator . next ( ) ; multRelKeyIterator . next ( ) ; } char [ ] chosenMultRel = multRelIterator . next ( ) ; int index = multRelKeyIterator . next ( ) ; List < SimpleRelation > relations = new ArrayList < SimpleRelation > ( ) ; Taxon subjectTaxon = inputResults . getT1 ( ) . getTaxon ( inputRelations . get ( index ) . getSubjectClassname ( ) ) ; Taxon objectTaxon = inputResults . getT2 ( ) . getTaxon ( inputRelations . get ( index ) . getObjectClassname ( ) ) ; for ( int i = 0 ; i < chosenMultRel . length ; i ++ ) { relations . add ( new SimpleRelation ( subjectTaxon . toString ( ) , chosenMultRel [ i ] + "" , objectTaxon . toString ( ) ) ) ; } return relations ; }
Creates new relations for the new input file based on the chosen multiple relation.
Creates new relations for the new input file based on the chosen multiple relation .