Class Break

    • Constructor Detail

      • Break

        public Break​(CompositeEntity container,
                     java.lang.String name)
              throws NameDuplicationException,
                     IllegalActionException
        Create a new actor 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 this actor cannot be contained by the proposed container (see the setContainer() method).
        NameDuplicationException - If the name coincides with an entity already in the container.
    • Method Detail

      • preinitialize

        public void preinitialize()
                           throws IllegalActionException
        Add a check for an unconnected input port. If the port is unconnected, set the type, so that the type will not resolve to unknown Can't use setAtLeast in the constructor, because the input could be any type, and booleans/integers/reals do not have a common base type other than unknown
        Specified by:
        preinitialize in interface Initializable
        Overrides:
        preinitialize in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - Not thrown here