public class SetManager extends Object
Set
objects for a certain SetType
. It is
responsible to create new parameter assignments for all
ParameterInstance
objects hat are covered by the SetType
of
its Set
. The assignments should have a *decreasing* probability, new
assignments can be triggered by calling nextAssignment()
,
the current assignment can be retrieved with
getCurrentMapping()
. Basically, the set manager conducts a
breadth-first search, guided by the probabilities of the index tuples.
Created: August 22, 2008Constructor and Description |
---|
SetManager(Set s,
SetType setType)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
calcSetAssignmentProbability()
Calculate probability that current set and the most probable assignment are
chosen.
|
protected double |
getCurrentAssignmentProb()
Gets the current assignment probability.
|
protected Map<ParameterInstance,ParameterAssignment> |
getCurrentMapping()
Creates mapping from all
ParameterInstance objects covered by the
SetType of the managed Set to the currently selected
ParameterAssignment instances. |
protected double |
getNextAssignmentProb()
Get probability of next assignment combination.
|
protected boolean |
nextAssignment()
Increments a single index to goto the next-probable combination of sets.
|
protected double calcSetAssignmentProbability()
protected final boolean nextAssignment()
protected double getNextAssignmentProb()
protected double getCurrentAssignmentProb()
protected Map<ParameterInstance,ParameterAssignment> getCurrentMapping()
ParameterInstance
objects covered by the
SetType
of the managed Set
to the currently selected
ParameterAssignment
instances.Copyright © 2013. All Rights Reserved.