-# Copyright (c) 2017-2021. The SimGrid Team. All rights reserved.
+# Copyright (c) 2017-2023. 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.
-from simgrid import Actor, Engine, this_actor
+"""
+Usage: actor-suspend.py platform_file [other parameters]
+"""
+
import sys
+from simgrid import Actor, Engine, this_actor
def lazy_guy():
"Usage: actor-suspend.py platform_file [other parameters]")
e.load_platform(sys.argv[1]) # Load the platform description
- hosts = e.get_all_hosts()
+ hosts = e.all_hosts
Actor.create("dream_master", hosts[0], dream_master)
e.run() # Run the simulation