R
- The type of formulas belief sets are made ofS
- The type of belief sets sampledpublic abstract class BeliefSetSampler<R extends Formula,S extends BeliefSet<R>> extends java.lang.Object implements BeliefSetIterator<R,S>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXIMUM_BELIEFBASE_LENGTH
This constant specifies the default maximum length for sampled
belief bases.
|
static int |
DEFAULT_MINIMUM_BELIEFBASE_LENGTH
This constant specifies the default minimum length for sampled
belief bases.
|
private int |
maxLength
Max length of samples belief sets.
|
private int |
minLength
Min length of samples belief sets
|
private Signature |
signature
The signature of this sampler.
|
Constructor and Description |
---|
BeliefSetSampler(Signature signature)
Creates a new belief base sampler for the given signature.
|
BeliefSetSampler(Signature signature,
int minLength,
int maxLength)
Creates a new belief base sampler for the given signature.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxLength()
Returns the max length of kbs of this sampler.
|
int |
getMinLength()
Returns the min length of kbs of this sampler.
|
Signature |
getSignature()
Returns the signature of this sampler.
|
boolean |
hasNext() |
abstract S |
next() |
private Signature signature
private int minLength
private int maxLength
public static final int DEFAULT_MAXIMUM_BELIEFBASE_LENGTH
public static final int DEFAULT_MINIMUM_BELIEFBASE_LENGTH
public BeliefSetSampler(Signature signature)
signature
- a signature.public BeliefSetSampler(Signature signature, int minLength, int maxLength)
signature
- a signature.minLength
- the minimum length of knowledge basesmaxLength
- the maximum length of knowledge basespublic boolean hasNext()
public abstract S next()
public Signature getSignature()
public int getMinLength()
public int getMaxLength()