Class ApplyFunction

    • Field Detail

      • function

        public PortParameter function
        The input port for function definition. The type of this port is undeclared, but to have this actor work, the designer has to provide a matched function token for it. Note: The reason that we don't declare the type for it is because currently there is not cast supported in the FunctionType class. we'll fix this later.
    • Constructor Detail

      • ApplyFunction

        public ApplyFunction​(Workspace workspace)
                      throws IllegalActionException,
                             NameDuplicationException
        Construct a ApplyFunction in the specified workspace with no container and an empty string as a name. You can then change the name with setName(). If the workspace argument is null, then use the default workspace.
        Parameters:
        workspace - The workspace that will list the actor.
        Throws:
        IllegalActionException - If the entity cannot be contained by the proposed container.
        NameDuplicationException - If the container already has an actor with this name.