|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp3j.simulation.assignments.exhaustive.SetManager
public class SetManager
Manages all 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, 2008
Constructor Summary | |
---|---|
SetManager(Set s,
SetType setType)
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetManager(Set s, SetType setType)
s
- the set to be managedsetType
- the type of the setMethod Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |