Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Acknoledge the fact that JniException is a runtime exception now: kill all its occure...
[simgrid.git] / examples / java / suspend / LazyGuy.java
1 /*
2  * Copyright 2006,2007,2010. The SimGrid Team. All rights reserved. 
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. 
6  */
7
8 import simgrid.msg.*;
9
10 public class LazyGuy extends simgrid.msg.Process {
11    public LazyGuy() {
12       super();
13     }
14    
15    public LazyGuy(Host host,String name) throws HostNotFoundException, NativeException
16      {
17         super(host,name,null);
18      }
19         
20          
21    public void main(String[] args) throws NativeException {
22       Msg.info("Hello !");
23       
24       Msg.info("Nobody's watching me ? Let's go to sleep.");
25       pause();
26       
27       Msg.info("Uuuh ? Did somebody call me ?");
28       Msg.info("Mmmh, goodbye now."); 
29    }
30 }