edu.indiana.iucbrf.casepackage
Class ParallelCSCGenerator

java.lang.Object
  extended by edu.indiana.iucbrf.casepackage.CaseGenerator
      extended by edu.indiana.iucbrf.casepackage.ParallelCSCGenerator

public class ParallelCSCGenerator
extends CaseGenerator

Generates a "fully-known" problem and a sparse problem parallel to each other, by hiding some of the fully-known problem's features. These problems are then used to create cases.


Field Summary
 
Fields inherited from class edu.indiana.iucbrf.casepackage.CaseGenerator
domain, featureNoiseDistribution, generatedCount, noiseProbability, problemCount, problemGenerator, solutionNoiseDistribution
 
Constructor Summary
ParallelCSCGenerator(ParallelPSPGenerator pg, Domain domain)
          Creates a new instance of ParallelCSCGenerator
ParallelCSCGenerator(ParallelPSPGenerator pg, double problemCount, Domain domain)
           
 
Method Summary
protected  Case generateCase(Problem p)
           
protected  Case generateCase(Problem p, Solution s)
           
 Case[] generateParallelCSC()
          Returns an array with two elements: 0 is the fully-known case, 1 is the sparse case.
 Case generateSparseFromKnown(Case known)
           
 
Methods inherited from class edu.indiana.iucbrf.casepackage.CaseGenerator
generateCase, generateCases, getGeneratedCount, shouldApplyFeatureNoise, shouldApplySolutionNoise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelCSCGenerator

public ParallelCSCGenerator(ParallelPSPGenerator pg,
                            Domain domain)
Creates a new instance of ParallelCSCGenerator


ParallelCSCGenerator

public ParallelCSCGenerator(ParallelPSPGenerator pg,
                            double problemCount,
                            Domain domain)
Method Detail

generateParallelCSC

public Case[] generateParallelCSC()
Returns an array with two elements: 0 is the fully-known case, 1 is the sparse case.


generateSparseFromKnown

public Case generateSparseFromKnown(Case known)

generateCase

protected Case generateCase(Problem p)
Overrides:
generateCase in class CaseGenerator

generateCase

protected Case generateCase(Problem p,
                            Solution s)