00001 /* 00002 * Created on Nov 2, 2009 00003 * 00004 * TODO To change the template for this generated file go to 00005 * Window - Preferences - Java - Code Style - Code Templates 00006 */ 00007 package edu.tum.cs.srl.bayesnets.inference; 00008 00009 import java.util.Vector; 00010 00011 import edu.tum.cs.bayesnets.inference.ITimeLimitedInference; 00012 import edu.tum.cs.bayesnets.inference.SampledDistribution; 00013 00014 public class TimeLimitedInference extends edu.tum.cs.bayesnets.inference.TimeLimitedInference { 00015 00016 Sampler inference; 00017 00018 public TimeLimitedInference(ITimeLimitedInference inference, double time, double interval) throws Exception { 00019 super(inference, time, interval); 00020 this.inference = (Sampler)inference; 00021 } 00022 00023 @Override 00024 protected void printResults(SampledDistribution dist) { 00025 inference.printResults(dist); 00026 } 00027 00028 public Vector<InferenceResult> getResults(SampledDistribution dist) { 00029 return inference.getResults(dist); 00030 } 00031 }