Package net.sf.tweety.arg.delp.syntax
Class DelpArgument
- java.lang.Object
-
- net.sf.tweety.arg.delp.syntax.DelpArgument
-
-
Constructor Summary
Constructors Constructor Description DelpArgument(java.util.Set<DefeasibleRule> support, FolFormula conclusion)
constructor; initializes this argument with the given parametersDelpArgument(FolFormula conclusion)
constructor; initializes the conclusion of this argument with the given literal
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Set<FolFormula>
getAttackOpportunities(DefeasibleLogicProgram delp)
Computes the set of literals that disagree with the conclusion of a subargument of this argumentFolFormula
getConclusion()
returns the conclusion of this argumentDelpArgument
getDisagreementSubargument(FolFormula lit, DefeasibleLogicProgram delp)
Computes the disagreement subargument of this argument for the given literaljava.util.Set<DelpRule>
getRulesWithHead(FolFormula l)
Returns all defeasible rules of the support of this argument with the given literal as headSignature
getSignature()
Always null.java.util.Set<DefeasibleRule>
getSupport()
returns the support of this argumentint
hashCode()
boolean
isStrongSubargumentOf(DelpArgument argument)
Checks whether this argument is a strong subargument of the given argument, i.e., if the support of this argument is a strict subset of the support of the given argumentboolean
isSubargumentOf(DelpArgument argument)
Checks whether this argument is a subargument of the given argumentjava.lang.String
toString()
-
-
-
Constructor Detail
-
DelpArgument
public DelpArgument(FolFormula conclusion)
constructor; initializes the conclusion of this argument with the given literal- Parameters:
conclusion
- a literal
-
DelpArgument
public DelpArgument(java.util.Set<DefeasibleRule> support, FolFormula conclusion)
constructor; initializes this argument with the given parameters- Parameters:
support
- a set of defeasible rulesconclusion
- a literal (must not be NULL)
-
-
Method Detail
-
isSubargumentOf
public boolean isSubargumentOf(DelpArgument argument)
Checks whether this argument is a subargument of the given argument- Parameters:
argument
- a DeLP argument- Returns:
true
iff this argument is a subargument of the given argument
-
isStrongSubargumentOf
public boolean isStrongSubargumentOf(DelpArgument argument)
Checks whether this argument is a strong subargument of the given argument, i.e., if the support of this argument is a strict subset of the support of the given argument- Parameters:
argument
- a DeLP argument- Returns:
true
iff this argument is a strong subargument of the given argument
-
getAttackOpportunities
public java.util.Set<FolFormula> getAttackOpportunities(DefeasibleLogicProgram delp)
Computes the set of literals that disagree with the conclusion of a subargument of this argument- Parameters:
delp
- a defeasible logic program- Returns:
- the set of literals that disagree with the conclusion of a subargument of this argument
-
getDisagreementSubargument
public DelpArgument getDisagreementSubargument(FolFormula lit, DefeasibleLogicProgram delp)
Computes the disagreement subargument of this argument for the given literal- Parameters:
lit
- a literaldelp
- a defeasible logic program- Returns:
- the disagreement subargument for
lit
ornull
if there is no disagreement subargument
-
getRulesWithHead
public java.util.Set<DelpRule> getRulesWithHead(FolFormula l)
Returns all defeasible rules of the support of this argument with the given literal as head- Parameters:
l
- a literal- Returns:
- a set defeasible rules
-
getConclusion
public FolFormula getConclusion()
returns the conclusion of this argument- Returns:
- the conclusion of this argument
-
getSupport
public java.util.Set<DefeasibleRule> getSupport()
returns the support of this argument- Returns:
- the support of this argument
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSignature
public Signature getSignature()
Always null.- Specified by:
getSignature
in interfaceFormula
- Returns:
null
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-