Class TDLTask

    • Field Detail

      • frequency

        public Parameter frequency
        Frequency of the task invocation in the mode period.
      • fast

        public Parameter fast
        Describes if task is a fast task.
      • slots

        public Parameter slots
        Slot selection string for the task.
    • Constructor Detail

      • TDLTask

        public TDLTask()
                throws IllegalActionException,
                       NameDuplicationException
        Construct a TDL task. You can then change the name with setName(). If the workspace argument is null, then use the default workspace. You should set a director before attempting to execute it. You should set the container before sending data to it. Increment the version number of the workspace.
        Throws:
        NameDuplicationException - Thrown if parameters cannot be set.
        IllegalActionException - Thrown if parameters cannot be set.
      • TDLTask

        public TDLTask​(Workspace workspace)
                throws IllegalActionException,
                       NameDuplicationException
        Construct a TDL Task 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. You should set a director before attempting to execute it. You should set the container before sending data to it. Increment the version number of the workspace.
        Parameters:
        workspace - The workspace that will list the actor.
        Throws:
        NameDuplicationException
        IllegalActionException
      • TDLTask

        public TDLTask​(CompositeEntity container,
                       java.lang.String name)
                throws IllegalActionException,
                       NameDuplicationException
        Create a TDL task 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. You should set a director before attempting to execute it.
        Parameters:
        container - The container actor.
        name - The name of this actor.
        Throws:
        IllegalActionException - If the container is incompatible with this actor.
        NameDuplicationException - If the name coincides with an actor already in the container.
    • Method Detail

      • getSensorsReadFrom

        public java.util.List<ModalPort> getSensorsReadFrom​(java.util.List refinementInputPorts,
                                                            java.util.List moduleInputPorts)
        Return the list of ports of the modal model that this task reads from.
        Parameters:
        refinementInputPorts - Inputports of the refinement which is the container of this task.
        moduleInputPorts - Inputports of the module that contains this task.
        Returns:
        List of modal ports.