Class TDLTaskPort

    • Field Detail

      • initialValue

        public Parameter initialValue
        The initial value of the task.
    • Constructor Detail

      • TDLTaskPort

        public TDLTaskPort​(Workspace workspace)
                    throws IllegalActionException,
                           NameDuplicationException
        Construct a port in the specified workspace with 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. The object is added to the workspace directory. Increment the version number of the workspace.
        Parameters:
        workspace - The workspace that will list the port.
        Throws:
        NameDuplicationException - Thrown if the initial value parameter cannot be created.
        IllegalActionException - Thrown if the initial value parameter cannot be created.
      • TDLTaskPort

        public TDLTaskPort​(ComponentEntity container,
                           java.lang.String name)
                    throws IllegalActionException,
                           NameDuplicationException
        Construct a TypedIOPort with a containing actor and a name that is neither an input nor an output. The specified container must implement the TypedActor interface, or an exception will be thrown.
        Parameters:
        container - The container actor.
        name - The name of the port.
        Throws:
        IllegalActionException - If the port is not of an acceptable class for the container, or if the container does not implement the TypedActor interface.
        NameDuplicationException - If the name coincides with a port already in the container.
      • TDLTaskPort

        public TDLTaskPort​(ComponentEntity container,
                           java.lang.String name,
                           boolean isInput,
                           boolean isOutput)
                    throws IllegalActionException,
                           NameDuplicationException
        Construct a TypedIOPort with a container and a name that is either an input, an output, or both, depending on the third and fourth arguments. The specified container must implement the TypedActor interface or an exception will be thrown.
        Parameters:
        container - The container actor.
        name - The name of the port.
        isInput - True if this is to be an input port.
        isOutput - True if this is to be an output port.
        Throws:
        IllegalActionException - If the port is not of an acceptable class for the container, or if the container does not implement the TypedActor interface.
        NameDuplicationException - If the name coincides with a port already in the container.