X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=traceanalysis.h;h=df3356ad50d422c08a3a2ba7d09234ccec394f5f;hp=46856d2fca44761cbffc05b2a7eec2ed85dd2951;hb=f817fff71c1cc97fe1bd55fa791f0d68af88ed1a;hpb=4541dc5155c69e168beedf3bd2a8f5ece0e0e65b diff --git a/traceanalysis.h b/traceanalysis.h index 46856d2..df3356a 100644 --- a/traceanalysis.h +++ b/traceanalysis.h @@ -2,8 +2,34 @@ #define TRACE_ANALYSIS_H #include "model.h" -class Trace_Analysis { +class TraceAnalysis { public: + /** setExecution is called once after installation with a reference to + * the ModelExecution object. */ + + virtual void setExecution(ModelExecution * execution) = 0; + + /** analyze is called once for each feasible trace with the complete + * action_list object. */ + virtual void analyze(action_list_t *) = 0; + + /** name returns the analysis name string */ + + virtual const char * name() = 0; + + /** Each analysis option is passed into the option method. This + * occurs before installation (i.e., you don't have a + * ModelExecution object yet). A TraceAnalysis object should + * support the option "help" */ + + virtual bool option(char *) = 0; + + /** The finish method is called once at the end. This should be + * used to print out results. */ + + virtual void finish() = 0; + + SNAPSHOTALLOC }; #endif