Class StringFunction

    • Field Detail

      • function

        public Parameter function
        Parameter that stores the string function to be performed on the input string. The possible values are "trim" (the default), "toUpperCase", or "toLowerCase".
    • Constructor Detail

      • StringFunction

        public StringFunction​(CompositeEntity container,
                              java.lang.String name)
                       throws NameDuplicationException,
                              IllegalActionException
        Construct an actor with the given container and name. Invoke the base class constructor and create the input and output ports. Set the default string function to "trim".
        Parameters:
        container - The container.
        name - The name of this actor.
        Throws:
        IllegalActionException - If the actor cannot be contained by the proposed container.
        NameDuplicationException - If the container already has an actor with this name.