Coverage details for edu.uci.ics.jung.graph.decorators.ConstantEdgeValue

LineHitsSource
1 /*
2  * Copyright (c) 2003, the JUNG Project and the Regents of the University
3  * of California
4  * All rights reserved.
5  *
6  * This software is open-source under the BSD license; see either
7  * "license.txt" or
8  * http://jung.sourceforge.net/license.txt for a description.
9  */
10 /*
11  * Created on Jul 7, 2004
12  *
13  */
14 package edu.uci.ics.jung.graph.decorators;
15  
16 import edu.uci.ics.jung.graph.ArchetypeEdge;
17  
18 /**
19  * Returns a constructor-specified constant value for each edge.
20  *
21  * @author Joshua O'Madadhain
22  */
23 public class ConstantEdgeValue implements NumberEdgeValue
24 {
25     protected Number value;
26  
27     public ConstantEdgeValue(double value)
288    {
298        this.value = new Double(value);
308    }
31     
32     public ConstantEdgeValue(Number value)
331    {
341        this.value = value;
351    }
36  
37     /**
38      * @see edu.uci.ics.jung.graph.decorators.NumberEdgeValue#getNumber(edu.uci.ics.jung.graph.ArchetypeEdge)
39      */
40     public Number getNumber(ArchetypeEdge arg0)
41     {
42352        return value;
43     }
44  
45     /**
46      * @see edu.uci.ics.jung.graph.decorators.NumberEdgeValue#setNumber(edu.uci.ics.jung.graph.ArchetypeEdge, java.lang.Number)
47      */
48     public void setNumber(ArchetypeEdge arg0, Number arg1)
49     {
500        throw new UnsupportedOperationException();
51     }
52  
53 }

this report was generated by version 1.0.5 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.