00001 00018 package com.microsoft.z3; 00019 00028 public class Probe extends Z3Object 00029 { 00037 public double apply(Goal g) 00038 { 00039 getContext().checkContextMatch(g); 00040 return Native.probeApply(getContext().nCtx(), getNativeObject(), 00041 g.getNativeObject()); 00042 } 00043 00044 Probe(Context ctx, long obj) 00045 { 00046 super(ctx, obj); 00047 } 00048 00049 Probe(Context ctx, String name) 00050 { 00051 super(ctx, Native.mkProbe(ctx.nCtx(), name)); 00052 } 00053 00054 void incRef(long o) 00055 { 00056 getContext().getProbeDRQ().incAndClear(getContext(), o); 00057 super.incRef(o); 00058 } 00059 00060 void decRef(long o) 00061 { 00062 getContext().getProbeDRQ().add(o); 00063 super.decRef(o); 00064 } 00065 }
1.7.6.1