| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| DRAEdgeValueMap |
|
| 1.0;1 |
| 1 | /* | |
| 2 | This file is part of Combean. | |
| 3 | ||
| 4 | Combean is free software; you can redistribute it and/or modify | |
| 5 | it under the terms of the GNU General Public License as published by | |
| 6 | the Free Software Foundation; either version 2 of the License, or | |
| 7 | (at your option) any later version. | |
| 8 | ||
| 9 | Combean is distributed in the hope that it will be useful, | |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12 | GNU General Public License for more details. | |
| 13 | ||
| 14 | You should have received a copy of the GNU General Public License | |
| 15 | along with Combean; if not, write to the Free Software | |
| 16 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
| 17 | */ | |
| 18 | /* | |
| 19 | * Created on 10.04.2005 | |
| 20 | * | |
| 21 | */ | |
| 22 | package net.sourceforge.combean.adapters.drasys.graph; | |
| 23 | ||
| 24 | import net.sourceforge.combean.interfaces.graph.Edge; | |
| 25 | import net.sourceforge.combean.interfaces.graph.Graph; | |
| 26 | import net.sourceforge.combean.interfaces.graph.containers.FixedEdgeMap; | |
| 27 | ||
| 28 | /** | |
| 29 | * Use the values of the edges in a OR-Objects graph as FixedEdgeMap | |
| 30 | * | |
| 31 | * @author schickin | |
| 32 | * | |
| 33 | */ | |
| 34 | public class DRAEdgeValueMap implements FixedEdgeMap { | |
| 35 | ||
| 36 | 0 | private DRAGraphAsGraph g = null; |
| 37 | ||
| 38 | /** | |
| 39 | * constructor | |
| 40 | */ | |
| 41 | public DRAEdgeValueMap() { | |
| 42 | 0 | super(); |
| 43 | 0 | } |
| 44 | ||
| 45 | /* (non-Javadoc) | |
| 46 | * @see net.sourceforge.combean.interfaces.graph.containers.EdgeMap#init(net.sourceforge.combean.interfaces.graph.Graph) | |
| 47 | */ | |
| 48 | public void init(Graph g) { | |
| 49 | 0 | this.g = (DRAGraphAsGraph) g; |
| 50 | 0 | } |
| 51 | ||
| 52 | /* (non-Javadoc) | |
| 53 | * @see net.sourceforge.combean.interfaces.graph.containers.FixedEdgeMap#get(net.sourceforge.combean.interfaces.graph.Edge) | |
| 54 | */ | |
| 55 | public Object get(Edge e) { | |
| 56 | 0 | return this.g.getEdgeValue(e); |
| 57 | } | |
| 58 | } |