00001 package edu.tum.cs.srl.mln.inference; 00002 00003 import edu.tum.cs.logic.GroundAtom; 00004 00005 public class InferenceResult implements Comparable<InferenceResult> { 00006 public GroundAtom ga; 00007 public double value; 00008 00009 public InferenceResult(GroundAtom ga, double value) { 00010 this.value = value; 00011 this.ga = ga; 00012 } 00013 00014 public void print() { 00015 System.out.println(String.format(" %.4f %s", value, ga.toString())); 00016 } 00017 00018 public int compareTo(InferenceResult o) { 00019 return this.ga.toString().compareTo(o.ga.toString()); 00020 } 00021 }