class org.simgrid.msg.Msg

public final class Msg

Methods

createEnvironment

public static final native void createEnvironment(String platformFile)

Create the simulation environment by parsing a platform file.

critical

public static final native void critical(String s)

Issue a critical logging message.

debug

public static final native void debug(String msg)

Issue a debug logging message.

deployApplication

public static final native void deployApplication(String deploymentFile)

Starts your processes by parsing a deployment file.

energyInit

public static final native void energyInit()

Tell the kernel that you want to use the energy plugin

environmentGetRoutingRoot

public static final native As environmentGetRoutingRoot()

error

public static final native void error(String msg)

Issue an error logging message.

fileSystemInit

public static final native void fileSystemInit()

getClock

public static final native double getClock()

Retrieves the simulation time

info

public static final native void info(String msg)

Issue an information logging message

init

public static final native void init(String[] args)

Initialize a MSG simulation.

Parameters:
  • args – The arguments of the command line of the simulation.

main

public static void main(String[] args)

Example launcher. You can use it or provide your own launcher, as you wish

Parameters:
  • args

run

public static final native void run()

Run the MSG simulation. After the simulation, you can freely retrieve the information that you want.. In particular, retrieving the status of a process or the current date is perfectly ok.

verb

public static final native void verb(String msg)

Issue a verbose logging message.

warn

public static final native void warn(String msg)

Issue a warning logging message.