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>ElevatorCurs.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</a> &gt; <span class="el_source">ElevatorCurs.java</span></div><h1>ElevatorCurs.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;
7  
8 import elevatorcurs.model.*;
9  
10 /**
11  *
12  * @author Mihai Hulea mihai.hulea@aut.utcluj.ro
13  */
14 <span class="nc" id="L14">public class ElevatorCurs {</span>
15  
16     /**
17      * @param args the command line arguments
18      */
19     public static void main(String[] args) {
20 <span class="nc" id="L20">        Elevator e1 = new Elevator();</span>
21 <span class="nc" id="L21">        e1.setCurrentDir(Direction.UP);</span>
22 <span class="nc" id="L22">         System.out.println(e1);</span>
23 <span class="nc bnc" id="L23" title="All 2 branches missed.">        for (int i = 0; i &lt; 5; i++) {</span>
24 <span class="nc" id="L24">            e1.move();</span>
25 <span class="nc" id="L25">            System.out.println(e1);</span>
26         }
27  
28 <span class="nc" id="L28">        e1.setCurrentDir(Direction.DOWN);</span>
29 <span class="nc bnc" id="L29" title="All 2 branches missed.">        for (int i = 0; i &lt; 5; i++) {</span>
30 <span class="nc" id="L30">            e1.move();</span>
31 <span class="nc" id="L31">            System.out.println(e1);</span>
32         }
33  
34 <span class="nc" id="L34">        e1.setCurrentDir(Direction.HOLD);</span>
35  
36 <span class="nc bnc" id="L36" title="All 2 branches missed.">        for (int i = 0; i &lt; 5; i++) {</span>
37 <span class="nc" id="L37">            e1.move();</span>
38 <span class="nc" id="L38">            System.out.println(e1);</span>
39         }
40  
41  
42         ///////////////
43  
44 <span class="nc" id="L44">        Controller c = new Controller(e1);</span>
45 <span class="nc" id="L45">        Simulator s = new Simulator(c, e1);</span>
46 <span class="nc" id="L46">        c.addJob(new Job(2));</span>
47 <span class="nc" id="L47">        c.addJob(new Job(1));</span>
48 <span class="nc" id="L48">        s.simulate();</span>
49  
50  
51 <span class="nc" id="L51">    }</span>
52  
53 }
54 </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>