Class LEDMatrix

    • Field Detail

      • column

        public TypedIOPort column
        The column of the LED to be illuminated. The columns are 0-based, to address the first column, the value of this port should be 0. The token type is integer.
      • control

        public TypedIOPort control
        True if the LED is to be illuminated. The token type is Boolean.
      • row

        public TypedIOPort row
        The row of the LED to be illuminated. The columns are 0-based, to address the first row, the value of this port should be 0. The token type is integer.
      • columns

        public Parameter columns
        The number of columns. The number must be a positive integer, the initial default value is 10.
      • rows

        public Parameter rows
        The number of rows. The number must be a positive integer, the initial default value is 10.
    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone this actor into the specified workspace. Override the base class to ensure that private variables are reset.
        Overrides:
        clone in class TypedAtomicActor
        Parameters:
        workspace - The workspace for the cloned object.
        Returns:
        A new instance of VisualModelReference.
        Throws:
        java.lang.CloneNotSupportedException - If a derived class contains an attribute that cannot be cloned.
        See Also:
        NamedObj.exportMoML(Writer, int, String), NamedObj.setDeferringChangeRequests(boolean)
      • preinitialize

        public void preinitialize()
                           throws IllegalActionException
        Description copied from class: AtomicActor
        Create receivers and declare delay dependencies. Derived classes can override this method to perform additional initialization functions, but they should call this base class methods or create the receivers themselves. This method gets executed exactly once prior to any other action methods. It cannot produce output data since type resolution is typically not yet done. It also gets invoked prior to any static scheduling that might occur in the domain, so it can change scheduling information.
        Specified by:
        preinitialize in interface Initializable
        Overrides:
        preinitialize in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - Not thrown in this base class.