Class TDLActor

    • Constructor Detail

      • TDLActor

        public TDLActor()
        Construct an FSMActor in the default workspace with an empty string as its name. Add the actor to the workspace directory. Increment the version number of the workspace.
      • TDLActor

        public TDLActor​(Workspace workspace)
        Construct an FSMActor in the specified workspace with an empty string as its name. You can then change the name with setName(). If the workspace argument is null, then use the default workspace. Add the actor to the workspace directory. Increment the version number of the workspace.
        Parameters:
        workspace - The workspace that will list the actor.
      • TDLActor

        public TDLActor​(CompositeEntity container,
                        java.lang.String name)
                 throws IllegalActionException,
                        NameDuplicationException
        Create an FSMActor in the specified container with the specified name. The name must be unique within the container or an exception is thrown. The container argument must not be null, or a NullPointerException will be thrown.
        Parameters:
        container - The container.
        name - The name of this actor within the container.
        Throws:
        IllegalActionException - If the entity cannot be contained by the proposed container.
        NameDuplicationException - If the name coincides with an entity already in the container.
    • Method Detail

      • readInput

        public boolean readInput​(Node node,
                                 IOPort p,
                                 long modePeriod)
                          throws IllegalActionException
        Read input values on the given port.
        Parameters:
        node - Node containing the TDLAction for reading the input.
        p - Port that should be read.
        modePeriod - Current mode period.
        Returns:
        True if input was read.
        Throws:
        IllegalActionException - If
      • inputIsSafeToProcess

        public boolean inputIsSafeToProcess​(IOPort port)
                                     throws IllegalActionException
        Return true if the next input on the given port is safe to process. An input is safe to process if the model timestamp of the event minus the minimum delay on the port is smaller than or equal to real time. Otherwise, events with smaller timestamps could appear on this port which has to be avoided.
        Parameters:
        port - Port for which the next event should be tested for being safe to process.
        Returns:
        True if the event is safe to process.
        Throws:
        IllegalActionException - If the minimum delay cannot be computed.