Class PortMatcher

    • Constructor Detail

      • PortMatcher

        public PortMatcher​(PortCriterion criterion,
                           ComponentEntity container,
                           java.lang.String name,
                           boolean isInput,
                           boolean isOutput)
                    throws IllegalActionException,
                           NameDuplicationException
        Construct a port matcher 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:
        criterion - The criterion for this port matcher, or null if this port matcher is not created for a PortCriterion.
        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.
    • Method Detail

      • getCriterion

        public Criterion getCriterion()
        Return the criterion.
        Specified by:
        getCriterion in interface Checkable
        Returns:
        The criterion, or null if this port is not created for a PortCriterion.
      • _setPortCriterion

        protected void _setPortCriterion​(PortCriterion criterion)
        Set the PortCriterion.
        Parameters:
        criterion - The criterion.