Examples of StringParameter


Examples of ptolemy.data.expr.StringParameter

        output = new TypedIOPort(this, "output", false, true);
        output.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

        // Add the possible algorithm choices.
        algorithm = new StringParameter(this, "algorithm");

        Set algorithms = Security.getAlgorithms("Cipher");
        Iterator algorithmsIterator = algorithms.iterator();

        for (int i = 0; algorithmsIterator.hasNext(); i++) {
            String algorithmName = (String) algorithmsIterator.next();

            if (i == 0) {
                algorithm.setExpression(algorithmName);
            }

            algorithm.addChoice(algorithmName);
        }

        // Add the possible provider choices.
        provider = new StringParameter(this, "provider");
        provider.setExpression("SystemDefault");
        provider.addChoice("SystemDefault");

        Provider[] providers = Security.getProviders();
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

        input.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

        output = new TypedIOPort(this, "output", false, true);
        output.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

        provider = new StringParameter(this, "provider");
        provider.setExpression("SystemDefault");
        provider.addChoice("SystemDefault");

        Provider[] providers = Security.getProviders();

        for (int i = 0; i < providers.length; i++) {
            provider.addChoice(providers[i].getName());
        }

        signatureAlgorithm = new StringParameter(this, "signatureAlgorithm");

        Iterator signatureAlgorithms = Security.getAlgorithms("Signature")
                .iterator();

        for (int i = 0; signatureAlgorithms.hasNext(); i++) {
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

     */
    public CipherActor(CompositeEntity container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);

        mode = new StringParameter(this, "mode");
        mode.setVisibility(Settable.EXPERT);
        mode.setExpression("");
        mode.addChoice("");

        // The meaning of these is covered in the documentation of mode
        // in the ports and parameters section.
        mode.addChoice("NONE");
        mode.addChoice("CBC");
        mode.addChoice("CFB");
        mode.addChoice("ECB");
        mode.addChoice("OFB");
        mode.addChoice("PCBC");

        padding = new StringParameter(this, "padding");
        padding.setVisibility(Settable.EXPERT);
        padding.setExpression("");
        padding.addChoice("");
        padding.addChoice("NoPadding");
        padding.addChoice("OAEPWithMD5AndMGF1Padding");
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

        A = new TypedIOPort(this, "A", true, false);
        A.setTypeEquals(BaseType.INT);
        B = new TypedIOPort(this, "B", true, false);
        B.setTypeEquals(BaseType.INT);

        operation = new StringParameter(this, "operation");
        operation.setExpression("0 : (NOP)");
        operation.addChoice("0 : (NOP)");
        operation.addChoice("1 : (A + B)");
        operation.addChoice("2 : (A - B)");
        operation.addChoice("3 : (A * B)");
 
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

     */
    public LevelSkippingTableauFactory(NamedObj container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);

        entityName = new StringParameter(this, "entityName");
        entityName.setExpression("");
    }
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

     */
    public Publisher(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);

        channel = new StringParameter(this, "channel");
        channel.setExpression(_uniqueChannelName());

        input = new TypedIOPort(this, "input", true, false);
        input.setMultiport(true);
        output = new TypedIOPort(this, "output", false, true);
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

            throws IllegalActionException, NameDuplicationException {
        super(container, name);

        output.setMultiport(false);

        operation = new StringParameter(this, "operation");
        operation.addChoice("add");
        operation.addChoice("multiply");
        operation.setExpression("add");
    }
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

            Constants.add("pointer", new PointerToken());
            _pointerTypeInitialized = true;
        }

        try {
            generatorPackage = new StringParameter(this, "generatorPackage");
            generatorPackage.setExpression("ptolemy.codegen.c");

            inline = new Parameter(this, "inline");
            inline.setTypeEquals(BaseType.BOOLEAN);
            inline.setExpression("false");
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

        // color for this icon.
        _highlightColor = new ColorAttribute(this, "_highlightColor");
        // Yellow default.
        _highlightColor.setExpression("{1.0, 1.0, 0.0, 1.0}");

        label = new StringParameter(this, "label");
        label.setExpression("HighlightEntities");

        SingletonParameter hideName = new SingletonParameter(this, "_hideName");
        hideName.setToken(BooleanToken.TRUE);
        hideName.setVisibility(Settable.EXPERT);
View Full Code Here

Examples of ptolemy.data.expr.StringParameter

     *   actor with this name.
     */
    public LinkVisualizer(CompositeEntity container, String name)
            throws NameDuplicationException, IllegalActionException {
        super(container, name);
        channelName = new StringParameter(this, "channelName");
        channelName.setExpression("AtomicWirelessChannel");

        sleepTime = new Parameter(this, "sleepTime", new IntToken(500));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.