#ifndef CONSOLE_H_ #define CONSOLE_H_ #include #include #include #include #include #include #include #include class Console { std::ostream &_out; std::ostream &_err; FuncTab _functab; DistTab _disttab; BUGSModel *_model; std::vector *_pvariables; ParseTree *_prelations; ParseTree *_pdata; unsigned int _iteration; void clearModel(); public: Console(std::ostream &out, std::ostream &err); ~Console(); bool checkModel(std::string const &filename); void compile(std::map &data_table, unsigned int nchain = 1); bool setParameters(std::map const &init_table, unsigned int chain); bool initialize(); bool update (long n); bool setMonitor(std::string const &name, Range const &range, unsigned int thin); bool setMonitor(std::string const &name, unsigned int thin); bool clearMonitor(std::string const &name, Range const &range); bool clearMonitor(std::string const &name); bool dumpState(std::map &data_table, unsigned int chain, bool observed); unsigned long iter(); bool coda(std::ofstream &index, std::ofstream &output); bool coda(std::string const &name, std::ofstream &index, std::ofstream &output); bool coda(std::string const &name, Range const &range, std::ofstream &index, std::ofstream &output); void setSeed(unsigned int seed); BUGSModel const *model(); }; #endif /* CONSOLE_H_ */