Biblioteca Java - Blame information for rev 32

Subversion Repositories:
Rev:
Rev Author Line No. Line
32 mihai 1 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../.resources/report.css" type="text/css"/><link rel="shortcut icon" href="../.resources/report.gif" type="image/gif"/><title>Simulator.java</title><link rel="stylesheet" href="../.resources/prettify.css" type="text/css"/><script type="text/javascript" src="../.resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../.sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">JaCoCoverage analysis of project &quot;ElevatorCurs&quot; (powered by JaCoCo from EclEmma)</a> &gt; <a href="index.source.html" class="el_package">elevatorcurs.model</a> &gt; <span class="el_source">Simulator.java</span></div><h1>Simulator.java</h1><pre class="source lang-java linenums">/*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package elevatorcurs.model;
7  
8 import java.util.logging.Level;
9 import java.util.logging.Logger;
10  
11 /**
12  *
13  * @author Mihai Hulea mihai.hulea@aut.utcluj.ro
14  */
15 public class Simulator {
16     private Controller c;
17     private Elevator e;
18  
19 <span class="nc" id="L19">    public Simulator(Controller c, Elevator e) {</span>
20 <span class="nc" id="L20">        this.c = c;</span>
21 <span class="nc" id="L21">        this.e = e;</span>
22 <span class="nc" id="L22">    }</span>
23  
24     public void simulate(){
25         while(true){
26 <span class="nc" id="L26">            e.move();</span>
27 <span class="nc" id="L27">            c.step();</span>
28 <span class="nc" id="L28">            System.out.println(e);</span>
29  
30             try {
31 <span class="nc" id="L31">                Thread.sleep(500);</span>
32 <span class="nc" id="L32">            } catch (InterruptedException ex) {</span>
33 <span class="nc" id="L33">                Logger.getLogger(Simulator.class.getName()).log(Level.SEVERE, null, ex);</span>
34 <span class="nc" id="L34">            }</span>
35         }
36     }
37 }
38 </pre><div class="footer"><span class="right">Created with <a href="http://www.eclemma.org/jacoco">JaCoCo</a> 0.7.4.201502262128</span></div></body></html>