All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.lirmm.graphik.graal.elder.labeling.defeasible.logic.PDLwithoutTD Maven / Gradle / Ivy

package fr.lirmm.graphik.graal.elder.labeling.defeasible.logic;

import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import fr.lirmm.graphik.graal.defeasible.core.DefeasibleKnowledgeBase;
import fr.lirmm.graphik.graal.defeasible.core.preferences.Preference;
import fr.lirmm.graphik.graal.defeasible.core.preferences.PreferenceSet;
import fr.lirmm.graphik.graal.defeasible.core.preferences.Preference.Status;
import fr.lirmm.graphik.graal.elder.core.Premise;
import fr.lirmm.graphik.graal.elder.core.RuleApplication;
import fr.lirmm.graphik.graal.elder.core.SGEdge;
import fr.lirmm.graphik.graal.elder.core.Statement;
import fr.lirmm.graphik.graal.elder.preference.PreferenceFunction;
import fr.lirmm.graphik.graal.elder.preference.SimplePreferenceFunction;



/**
 * Labeling function for ambibuity propagating without team defeat
 * @author hamhec
 *
 */
public class PDLwithoutTD extends AbstractDefeasibleLogicLabelingFunction {
	
	public PDLwithoutTD(PreferenceSet prefs) {
		super(prefs);
	}
	
	public PDLwithoutTD(PreferenceFunction pf) {
		super(pf);
	}
	
	public boolean shouldAttackBeConsidered(SGEdge attack) {
		return LabelingHelper.ambiguityPropagating(attack);
	}
	
	
	public String handleSurvivingSupportsAndAttacks(Premise premise, List survivingSupports, List survivingAttacks) {
		return LabelingHelper.withoutTeamDefeat(premise, 
				survivingSupports, survivingAttacks, this.getPreferenceFunction());
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy