Class Butterfly

    • Constructor Detail

      • Butterfly

        public Butterfly​(Workspace workspace)
                  throws IllegalActionException,
                         NameDuplicationException
        Construct a Butterfly with a name and a container. The container argument must not be null, or a NullPointerException will be thrown. This actor will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string. Increment the version of the workspace. This actor will have no local director initially, and its executive director will be simply the director of the container.
        Parameters:
        workspace - The workspace in which to create the Butterfly.
        Throws:
        IllegalActionException - If the container is incompatible with this actor.
        NameDuplicationException - If the name coincides with an actor already in the container.