Package net.sf.tweety.logics.pl.util
Class HsSampler
- java.lang.Object
-
- net.sf.tweety.commons.BeliefSetSampler<PlFormula,PlBeliefSet>
-
- net.sf.tweety.logics.pl.util.HsSampler
-
- All Implemented Interfaces:
java.util.Iterator<PlBeliefSet>
,BeliefSetIterator<PlFormula,PlBeliefSet>
public class HsSampler extends BeliefSetSampler<PlFormula,PlBeliefSet>
Generates random propositional belief base with a given inconsistency measure (for the Hs inconsistency measure) and of a given size.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from class net.sf.tweety.commons.BeliefSetSampler
DEFAULT_MAXIMUM_BELIEFBASE_LENGTH, DEFAULT_MINIMUM_BELIEFBASE_LENGTH
-
-
Constructor Summary
Constructors Constructor Description HsSampler(PlSignature signature, int incvalue)
Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt.HsSampler(PlSignature signature, int incvalue, int minLength, int maxLength)
Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt.
-
Method Summary
Modifier and Type Method Description PlBeliefSet
next()
-
Methods inherited from class net.sf.tweety.commons.BeliefSetSampler
getMaxLength, getMinLength, getSamplerSignature, hasNext
-
-
-
-
Constructor Detail
-
HsSampler
public HsSampler(PlSignature signature, int incvalue)
Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt. the Hs inconsistency measure)- Parameters:
signature
- some propositional signatureincvalue
- some inconsistency value.
-
HsSampler
public HsSampler(PlSignature signature, int incvalue, int minLength, int maxLength)
Creates a new sample for the given signature which generates propositional belief sets with the given inconsistency value (wrt. the Hs inconsistency measure)- Parameters:
signature
- some propositional signatureincvalue
- some inconsistency value.minLength
- the minimum length of knowledge basesmaxLength
- the maximum length of knowledge bases
-
-
Method Detail
-
next
public PlBeliefSet next()
- Specified by:
next
in interfaceBeliefSetIterator<PlFormula,PlBeliefSet>
- Specified by:
next
in interfacejava.util.Iterator<PlBeliefSet>
- Specified by:
next
in classBeliefSetSampler<PlFormula,PlBeliefSet>
-
-