001/* Class used to test ComponentPort
002
003 Copyright (c) 1999-2014 The Regents of the University of California.
004 All rights reserved.
005 Permission is hereby granted, without written agreement and without
006 license or royalty fees, to use, copy, modify, and distribute this
007 software and its documentation for any purpose, provided that the above
008 copyright notice and the following two paragraphs appear in all copies
009 of this software.
010
011 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
012 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
013 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
014 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
015 SUCH DAMAGE.
016
017 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
018 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
019 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
020 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
021 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
022 ENHANCEMENTS, OR MODIFICATIONS.
023
024 PT_COPYRIGHT_VERSION_2
025 COPYRIGHTENDKEY
026
027 */
028package ptolemy.kernel.test;
029
030import java.util.Enumeration;
031import java.util.LinkedList;
032
033import ptolemy.kernel.ComponentEntity;
034import ptolemy.kernel.ComponentPort;
035import ptolemy.kernel.util.IllegalActionException;
036import ptolemy.kernel.util.NameDuplicationException;
037
038//////////////////////////////////////////////////////////////////////////
039//// TestComponentPort
040
041/**
042 This class is used to test protected method(s) in ComponentPort
043
044 @author Christopher Hylands
045 @version $Id$
046 @since Ptolemy II 0.4
047 @Pt.ProposedRating Yellow (cxh)
048 @Pt.AcceptedRating Red (cxh)
049 */
050public class TestComponentPort extends ComponentPort {
051    /** Construct a TestComponentPort
052     *  @param container The container entity.
053     *  @param name The name of the port.
054     *  @exception IllegalActionException If the port is not of an acceptable
055     *   class for the container.
056     *  @exception NameDuplicationException If the name coincides with
057     *   a port already in the container.
058     */
059    public TestComponentPort(ComponentEntity container, String name)
060            throws IllegalActionException, NameDuplicationException {
061        super(container, name);
062    }
063
064    /** @deprecated _deepConnectedPorts is deprecated,
065     but we need to test it anyway
066     */
067    @Deprecated
068    public Enumeration testDeepConnectedPorts(LinkedList path) {
069        return _deepConnectedPorts(path);
070    }
071
072    /** @deprecated _deepInsidePorts is deprecated,
073     but we need to test it anyway
074     */
075    @Deprecated
076    public Enumeration testDeepInsidePorts(LinkedList path) {
077        return _deepInsidePorts(path);
078    }
079}