Class Msg


  • public final class Msg
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createEnvironment​(java.lang.String platformFile)
      Create the simulation environment by parsing a platform file.
      static void critical​(java.lang.String s)
      Issue a critical logging message.
      static void debug​(java.lang.String msg)
      Issue a debug logging message.
      static void deployApplication​(java.lang.String deploymentFile)
      Starts your processes by parsing a deployment file.
      static void energyInit()
      Tell the kernel that you want to use the energy plugin
      static As environmentGetRoutingRoot()  
      static void error​(java.lang.String msg)
      Issue an error logging message.
      static void fileSystemInit()  
      static double getClock()
      Retrieves the simulation time
      static void info​(java.lang.String msg)
      Issue an information logging message
      static void init​(java.lang.String[] args)
      Initialize a MSG simulation.
      static void main​(java.lang.String[] args)
      Example launcher.
      static void run()
      Run the MSG simulation.
      static void verb​(java.lang.String msg)
      Issue a verbose logging message.
      static void warn​(java.lang.String msg)
      Issue a warning logging message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getClock

        public static final double getClock()
        Retrieves the simulation time
      • debug

        public static final void debug​(java.lang.String msg)
        Issue a debug logging message.
      • verb

        public static final void verb​(java.lang.String msg)
        Issue a verbose logging message.
      • info

        public static final void info​(java.lang.String msg)
        Issue an information logging message
      • warn

        public static final void warn​(java.lang.String msg)
        Issue a warning logging message.
      • error

        public static final void error​(java.lang.String msg)
        Issue an error logging message.
      • critical

        public static final void critical​(java.lang.String s)
        Issue a critical logging message.
      • init

        public static final void init​(java.lang.String[] args)
        Initialize a MSG simulation.
        Parameters:
        args - The arguments of the command line of the simulation.
      • energyInit

        public static final void energyInit()
        Tell the kernel that you want to use the energy plugin
      • fileSystemInit

        public static final void fileSystemInit()
      • run

        public static final 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.
      • createEnvironment

        public static final void createEnvironment​(java.lang.String platformFile)
        Create the simulation environment by parsing a platform file.
      • environmentGetRoutingRoot

        public static final As environmentGetRoutingRoot()
      • deployApplication

        public static final void deployApplication​(java.lang.String deploymentFile)
        Starts your processes by parsing a deployment file.
      • main

        public static void main​(java.lang.String[] args)
        Example launcher. You can use it or provide your own launcher, as you wish
        Parameters:
        args -