public class EnumeratingPlBeliefSetSampler extends BeliefBaseSampler<PlBeliefSet>
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<PossibleWorld> |
allWorlds
All possible worlds
|
private int |
currentLength
The current length
|
private int |
currentMaxLength
The currently used max length.
|
private int |
currentMinLength
The currently used min length.
|
private java.util.BitSet |
indices
The current indices of the worlds that construct the formulas.
|
DEFAULT_MAXIMUM_BELIEFBASE_LENGTH, DEFAULT_MINIMUM_BELIEFBASE_LENGTH| Constructor and Description |
|---|
EnumeratingPlBeliefSetSampler(Signature signature)
Creates a new sampler for the given signature
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.BitSet |
increment(java.util.BitSet bitSet)
Increments the given bit set, returns null
if an overflow happens.
|
private PlBeliefSet |
next()
Returns the next belief set.
|
PlBeliefSet |
randomSample(int minLength,
int maxLength)
This method randomly samples a single belief base of the given signature
with the given belief base length.
|
getSignature, randomSample, randomSampleprivate int currentMinLength
private int currentMaxLength
private int currentLength
private java.util.List<PossibleWorld> allWorlds
private java.util.BitSet indices
public EnumeratingPlBeliefSetSampler(Signature signature)
signature - some signaturepublic PlBeliefSet randomSample(int minLength, int maxLength)
BeliefBaseSamplerrandomSample in class BeliefBaseSampler<PlBeliefSet>minLength - the minimum length of the belief base.maxLength - the maximum length of the belief base.private PlBeliefSet next()
private java.util.BitSet increment(java.util.BitSet bitSet)
bitSet - some bit set.