Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this example needs to forcefully destroy the VMs
[simgrid.git] / examples / java / surfPlugin / TracePlugin.java
index 6de1823..ac1d677 100644 (file)
@@ -1,3 +1,9 @@
+/* Copyright (c) 2014. 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. */
+
 package surfPlugin;
 
 import org.simgrid.surf.*;
@@ -26,11 +32,11 @@ public class TracePlugin extends Plugin {
     Msg.info("Trace: Cpu destructed "+cpu.getName());
   }
 
-  public void cpuStateChangedCallback(Cpu cpu){
+  public void cpuStateChangedCallback(Cpu cpu, ResourceState old, ResourceState cur){
     Msg.info("Trace: Cpu state changed "+cpu.getName());
   }
 
-  public void cpuActionStateChangedCallback(CpuAction action){
+  public void cpuActionStateChangedCallback(CpuAction action, ActionState old, ActionState cur){
     Msg.info("Trace: CpuAction state changed "+action.getModel().getName());
   }
 
@@ -42,11 +48,11 @@ public class TracePlugin extends Plugin {
     Msg.info("Trace: NetworkLink destructed "+link.getName());
   }
 
-  public void networkLinkStateChangedCallback(NetworkLink link){
+  public void networkLinkStateChangedCallback(NetworkLink link, ResourceState old, ResourceState cur){
     Msg.info("Trace: NetworkLink state changed "+link.getName());
   }
 
-  public void networkActionStateChangedCallback(NetworkAction action){
+  public void networkActionStateChangedCallback(NetworkAction action, ActionState old, ActionState cur){
     Msg.info("Trace: NetworkAction state changed "+action.getModel().getName());
   }