Class VariableLattice

    • Field Detail

      • blockSize

        public Parameter blockSize
        The number of inputs that use each each coefficient set. This is an integer that defaults to 1.
      • newCoefficients

        public TypedIOPort newCoefficients
        The input for new coefficient values. This is an array of doubles.
      • input_tokenConsumptionRate

        public Parameter input_tokenConsumptionRate
        The parameter that gives the number of tokens consumed by the input port. This is set equal to blockSize.
      • output_tokenProductionRate

        public Parameter output_tokenProductionRate
        The parameter that gives the number of tokens produces by the output port. This is set equal to blockSize.
    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the actor into the specified workspace. This calls the base class and then resets the type constraints.
        Overrides:
        clone in class Lattice
        Parameters:
        workspace - The workspace for the new object.
        Returns:
        A new actor.
        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)
      • getContext

        public Entity getContext()
                          throws IllegalActionException
        Return the change context being made explicit. In simple cases, this will simply be the entity implementing this interface. However, in more complex cases, directors may implement this interface, or entities may modify parameters according to a different change context (i.e. HDF)
        Specified by:
        getContext in interface ExplicitChangeContext
        Returns:
        The change context being made explicit.
        Throws:
        IllegalActionException - Not thrown in this base class.
      • prefire

        public boolean prefire()
                        throws IllegalActionException
        Return false if the input does not have enough tokens to fire. Otherwise, return true.
        Specified by:
        prefire in interface Executable
        Overrides:
        prefire in class Lattice
        Returns:
        False if the number of input tokens available is not at least equal to the blockSize parameter.
        Throws:
        IllegalActionException - If the superclass throws it.