001/* A ModalDirector governs the execution of a modal model. 002 003 Copyright (c) 2006-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 */ 027package ptolemy.domains.modal.kernel; 028 029import ptolemy.kernel.CompositeEntity; 030import ptolemy.kernel.util.IllegalActionException; 031import ptolemy.kernel.util.NameDuplicationException; 032 033////////////////////////////////////////////////////////////////////////// 034//// ModalDirector 035 036/** 037 This class is identical to its base class. Previously, the base class 038 did not strictly follow the actor semantics. Now it does, so this class 039 is no longer needed. 040 041 @author Edward A. Lee 042 @version $Id$ 043 @since Ptolemy II 8.0 044 @Pt.ProposedRating Green (eal) 045 @Pt.AcceptedRating Red (hyzheng) 046 @see FSMActor 047 @deprecated Use FSMDirector 048 */ 049@Deprecated 050public class ModalDirector extends FSMDirector { 051 052 /** Construct a director in the given container with the given name. 053 * The container argument must not be null, or a 054 * NullPointerException will be thrown. 055 * If the name argument is null, then the name is set to the 056 * empty string. Increment the version number of the workspace. 057 * @param container Container of this director. 058 * @param name Name of this director. 059 * @exception IllegalActionException If the name has a period in it, or 060 * the director is not compatible with the specified container. 061 * @exception NameDuplicationException If the container not a 062 * CompositeActor and the name collides with an entity in the container. 063 */ 064 public ModalDirector(CompositeEntity container, String name) 065 throws IllegalActionException, NameDuplicationException { 066 super(container, name); 067 } 068}