#define ACT_DEBUG(...) \
if (XBT_LOG_ISENABLED(actions, xbt_log_priority_verbose)) { \
char *NAME = xbt_str_join_array(action, " "); \
XBT_DEBUG(__VA_ARGS__); \
xbt_free(NAME); \
} else ((void)0)
static void log_action(const char *const *action, double date)
{
}
}
class Replayer {
public:
explicit Replayer(std::vector<std::string> args)
{
argv[0] = &args.at(0)[0];
if (args.size() == 1) {
argc = 1;
} else {
argc = 2;
argv[1] = &args.at(1)[0];
}
}
void operator()()
{
}
static void compute(const char* const* action)
{
double amount = std::stod(action[2]);
ACT_DEBUG("Entering %s", NAME);
}
static void send(
const char*
const* action)
{
double size = std::stod(action[3]);
ACT_DEBUG("Entering Send: %s (size: %g) -- Actor %s on mailbox %s", NAME, size,
}
static void recv(
const char*
const* action)
{
}
};
int main(
int argc,
char *argv[])
{
xbt_assert(argc > 2,
"Usage: %s platform_file deployment_file [action_files]\n" "\t# if all actions are in the same file\n"
"\tExample: %s msg_platform.xml msg_deployment.xml actions\n"
"\t# if actions are in separate files, specified in deployment\n"
"\tExample: %s msg_platform.xml msg_deployment.xml ",
argv[0], argv[0], argv[0]);
if (argv[3]) {
}
if (argv[3]) {
}
return 0;
}