4 * This file contains the declaration of the wrapper class of the native MSG task type.
6 * Copyright 2006,2007 Martin Quinson, Malek Cherier
9 * This program is free software; you can redistribute
10 * it and/or modify it under the terms of the license
11 *(GNU LGPL) which comes with this package.
18 // Compilation C++ recquise
20 #error Msg.hpp requires C++ compilation (use a .cxx suffix)
23 #include <MsgException.hpp>
24 #include <InvalidArgumentException.hpp>
25 #include <LogicException.hpp>
27 #include <StringHelper.hpp>
35 class InvalidArgumentException;
38 /*! \brief init() - Initialize MSG (This function must be called at the begining of each simulation).
40 * \param argv A list of arguments.
41 * \param argc The number of arguments of the list.
43 SIMGRIDX_EXPORT void init(int argc, char** argv);
45 /*! \brief finalize() - Finalize MSG (This function must be called at the end of each simulation).
47 * \exception If this function fails, it throws a exception describing the cause of the failure.
49 SIMGRIDX_EXPORT void finalize(void)
52 /*! \brief info() - Display information (using xbt log format).
54 * \param s The information to display.
56 SIMGRIDX_EXPORT void info(const StringHelper& s);
58 SIMGRIDX_EXPORT void info(const char* s);
60 SIMGRIDX_EXPORT void error(const StringHelper& s);
62 SIMGRIDX_EXPORT void error(const char* s);
65 /*! \brief getClock() - Retrieve the simulation time
67 * \return The current simulation time.
69 SIMGRIDX_EXPORT double getClock(void);
72 SIMGRIDX_EXPORT void setMaxChannelNumber(int number)
73 throw(InvalidArgumentException, LogicException);
75 SIMGRIDX_EXPORT int getMaxChannelNumber(void);
78 } // namespace SimGrid