Class FixConst

    • 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.
      • trigger

        public TypedIOPort trigger
        The trigger port. The type of this port is undeclared, meaning that it will resolve to any data type.
    • Constructor Detail

      • FixConst

        public FixConst​(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.