001/* Subclass of Parameter with "expert" visibility. 002 003 Copyright (c) 1998-2005 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 028 */ 029package ptolemy.data.expr; 030 031import ptolemy.kernel.util.IllegalActionException; 032import ptolemy.kernel.util.NameDuplicationException; 033import ptolemy.kernel.util.NamedObj; 034import ptolemy.kernel.util.Settable; 035 036////////////////////////////////////////////////////////////////////////// 037//// ExpertParameter 038 039/** 040 This class is identical to Parameter except that its visibility 041 is set to "expert" by default. The visibility is not represented 042 in a MoML file, so if you want "expert" visibility to be persistent, 043 you must use this class. 044 045 @author Edward A. Lee 046 @version $Id$ 047 @since Ptolemy II 4.0 048 @Pt.ProposedRating Yellow (eal) 049 @Pt.AcceptedRating Red (cxh) 050 */ 051public class ExpertParameter extends Parameter { 052 /** Construct a parameter with the given name contained by the specified 053 * entity. The container argument must not be null, or a 054 * NullPointerException will be thrown. This parameter will use the 055 * workspace of the container for synchronization and version counts. 056 * If the name argument is null, then the name is set to the empty string. 057 * The object is not added to the list of objects in the workspace 058 * unless the container is null. 059 * Increment the version of the workspace. 060 * @param container The container. 061 * @param name The name of the parameter. 062 * @exception IllegalActionException If the parameter is not of an 063 * acceptable class for the container. 064 * @exception NameDuplicationException If the name coincides with 065 * a parameter already in the container. 066 */ 067 public ExpertParameter(NamedObj container, String name) 068 throws IllegalActionException, NameDuplicationException { 069 super(container, name); 070 setVisibility(Settable.EXPERT); 071 } 072}