-/* $Id$ */
-
-/* Copyright (c) 2004 Arnaud Legrand. All rights reserved. */
+/* Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
DIE_IMPOSSIBLE;
}
+static int ws_get_latency_limited(surf_action_t action)
+{
+ if (action->model_type == surf_network_model)
+ return surf_network_model->get_latency_limited(action);
+ INFO0("You tried to ask if a non network action is limited by latency, aborting...");
+ DIE_IMPOSSIBLE;
+}
+
static double ws_action_get_remains(surf_action_t action)
{
if (action->model_type == surf_network_model)
surf_workstation_model->set_max_duration = ws_action_set_max_duration;
surf_workstation_model->set_priority = ws_action_set_priority;
surf_workstation_model->get_remains = ws_action_get_remains;
+ surf_workstation_model->get_latency_limited = ws_get_latency_limited;
surf_workstation_model->extension.workstation.execute = ws_execute;
surf_workstation_model->extension.workstation.sleep = ws_action_sleep;
surf_workstation_model->extension.workstation.link_shared = ws_link_shared;
surf_workstation_model->extension.workstation.get_properties =
ws_get_properties;
+
}
/********************************************************************/