#include "simgrid/forward.h" // aid_t
#include "xbt/utility.hpp" // XBT_DECLARE_ENUM_CLASS
+#include <sstream>
#include <string>
namespace simgrid {
friend State; // FIXME remove this once we have a proper class to handle the statistics
public:
- XBT_DECLARE_ENUM_CLASS(Type, UNKNOWN, RANDOM, ISEND, IRECV, COMM_WAIT, COMM_TEST);
+ XBT_DECLARE_ENUM_CLASS(Type, UNKNOWN, RANDOM, COMM_RECV, COMM_SEND, COMM_TEST, COMM_WAIT);
Type type_ = Type::UNKNOWN;
aid_t aid_ = 0;
public:
std::string to_string(bool verbose) const override;
std::string dot_label() const override;
- RandomTransition(aid_t issuer, int times_considered, char* buffer);
+ RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream);
bool depends(const Transition* other) const override { return false; } // Independent with any other transition
};