Class ConstPlaceable

    • Constructor Detail

      • ConstPlaceable

        public ConstPlaceable​(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.
    • Method Detail

      • place

        public void place​(PortableContainer container)
        Place the visual representation of the actor into the specified container.
        Specified by:
        place in interface PortablePlaceable
        Parameters:
        container - The container in which to place the object, or null to specify that there is no current container.