00001 package edu.tum.cs.srl.bayesnets.bln; 00002 00003 import edu.tum.cs.inference.IParameterHandler; 00004 import edu.tum.cs.inference.ParameterHandler; 00005 import edu.tum.cs.srl.Database; 00006 import edu.tum.cs.srl.bayesnets.RelationalBeliefNetwork; 00007 00008 public abstract class AbstractBayesianLogicNetwork implements IParameterHandler { 00009 public RelationalBeliefNetwork rbn; 00010 public String logicFile; 00011 protected ParameterHandler paramHandler; 00012 00013 public AbstractBayesianLogicNetwork(RelationalBeliefNetwork rbn, String logicFile) { 00014 this.rbn = rbn; 00015 this.logicFile = logicFile; 00016 this.paramHandler = new ParameterHandler(this); 00017 } 00018 00019 public abstract AbstractGroundBLN ground(Database db) throws Exception; 00020 00021 public ParameterHandler getParameterHandler() { 00022 return paramHandler; 00023 } 00024 }