|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.indiana.iucbrf.problem.ProblemGenerator
public class ProblemGenerator
This class handles the construction of a problem, randomly according to given feature distributions. Each distribution generates a double, which is then used to construct a Feature in constructAbstractFeature(). This class can only generate problems containing exclusively DoubleRepresentable features.
| Field Summary | |
|---|---|
protected java.util.HashMap |
argMap
|
protected Domain |
domain
|
protected DistributionCollection |
knownFeatureDistribution
|
| Constructor Summary | |
|---|---|
ProblemGenerator(java.util.HashMap argMap)
Construct a problem generator with the given feature generators. |
|
ProblemGenerator(java.util.HashMap argMap,
Domain domain)
Creates new ProblemGenerator. |
|
| Method Summary | |
|---|---|
Problem |
generateProblem()
Generate a problem according to the arguments and each feature's standard constructor. |
java.util.HashMap |
getArgMap()
Get the map of arguments associated with this ProblemGenerator. |
void |
setArgumentsForFeature(FeatureKey featureKey,
java.lang.Object args)
Change (or set for the first time) the distribution for the feature at the specified index. |
void |
setDomain(Domain domain)
Set the domain in which this ProblemGenerator generates problems. |
void |
setKnownFeatureDistribution(DistributionCollection knownFeatureDistribution)
1.0 means feature is known. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.HashMap argMap
protected Domain domain
protected DistributionCollection knownFeatureDistribution
| Constructor Detail |
|---|
public ProblemGenerator(java.util.HashMap argMap,
Domain domain)
public ProblemGenerator(java.util.HashMap argMap)
| Method Detail |
|---|
public void setDomain(Domain domain)
public void setArgumentsForFeature(FeatureKey featureKey,
java.lang.Object args)
public void setKnownFeatureDistribution(DistributionCollection knownFeatureDistribution)
public java.util.HashMap getArgMap()
public Problem generateProblem()
throws DomainNotSpecifiedException
DomainNotSpecifiedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||