Class TDLTransition

    • Field Detail

      • frequency

        public Parameter frequency
        The frequency of the transition.
      • requiredPorts

        public java.util.List requiredPorts
        List of all ports that are used in this guard expression.
      • requiredSensors

        public java.util.List requiredSensors
        List of Sensors that are used in this guard expression.
    • Constructor Detail

      • TDLTransition

        public TDLTransition​(TDLActor container,
                             java.lang.String name)
                      throws IllegalActionException,
                             NameDuplicationException
        Construct a transition with the given name contained by the specified entity. The container argument must not be null, or a NullPointerException will be thrown. This transition 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.
        Parameters:
        container - The container.
        name - The name of the transition.
        Throws:
        IllegalActionException - If the container is incompatible with this transition.
        NameDuplicationException - If the name coincides with any relation already in the container.
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        Description copied from class: Transition
        React to a change in an attribute. If the changed attribute is the preemptive parameter, evaluate the parameter. If the parameter is given an expression that does not evaluate to a boolean value, throw an exception; otherwise increment the version number of the workspace.
        Overrides:
        attributeChanged in class Transition
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If thrown by the superclass attributeChanged() method, or the changed attribute is the preemptive parameter and is given an expression that does not evaluate to a boolean value.