Logo AND Algorithmique Numérique Distribuée

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