1 package org.opentrafficsim.core.network; 2 3 import java.util.HashSet; 4 import java.util.Set; 5 6 /** 7 * <p> 8 * Copyright (c) 2002-2014 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. 9 * <p> 10 * See for project information <a href="http://www.simulation.tudelft.nl/"> www.simulation.tudelft.nl</a>. 11 * <p> 12 * The OpenTrafficSim project is distributed under the following BSD-style license:<br> 13 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following 14 * conditions are met: 15 * <ul> 16 * <li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following 17 * disclaimer.</li> 18 * <li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following 19 * disclaimer in the documentation and/or other materials provided with the distribution.</li> 20 * <li>Neither the name of Delft University of Technology, nor the names of its contributors may be used to endorse or promote 21 * products derived from this software without specific prior written permission.</li> 22 * </ul> 23 * This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, 24 * but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no 25 * event shall the copyright holder or contributors be liable for any direct, indirect, incidental, special, exemplary, or 26 * consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or 27 * profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or 28 * tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the 29 * possibility of such damage. 30 * @version 11 Nov 2014 <br> 31 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 32 * @author <a href="http://Hansvanlint.weblog.tudelft.nl">Hans van Lint</a> 33 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 34 * @author <a href="http://www.citg.tudelft.nl">Guus Tamminga</a> 35 * @author <a href="http://www.citg.tudelft.nl">Yufei Yuan</a> 36 * @param <ID> Name of the junction 37 * @param <L> Link??? 38 */ 39 public class Junction<ID, L extends Link<?, ?>> extends HashSet<L> 40 { 41 /** */ 42 private static final long serialVersionUID = 20141112L; 43 44 /** network id. */ 45 private final ID id = null; // FIXME added "= null" to make the error go away 46 47 // Please do not commit code that does not compile! 48 49 /** HashSet of Nodes. */ 50 private Set<AbstractNode<?, ?>> nodeSet = new HashSet<>(); 51 52 }