Class Const

    • Field Detail

      • value

        public Parameter value
        The value produced by this constant source. By default, it contains an IntToken with value 1. If the type of this token is changed during the execution of a model, then the director will be asked to redo type resolution.

        The Ptolemy II Expression language defines the syntax for this parameter. In Vergil, documentation is available via the Help button in the Edit Parameters window. Documentation is available on-line at http://ptolemy.eecs.berkeley.edu/books/Systems/chapters/Expressions.pdf.

    • Constructor Detail

      • Const

        public Const​(CompositeEntity container,
                     java.lang.String name)
              throws NameDuplicationException,
                     IllegalActionException
        Construct a constant source with the given container and name. Create the value parameter, initialize its value to the default value of an IntToken with value 1.
        Parameters:
        container - The container.
        name - The name of this actor.
        Throws:
        IllegalActionException - If the entity cannot be contained by the proposed container.
        NameDuplicationException - If the container already has an actor with this name.