Package ptolemy.data.expr

Examples of ptolemy.data.expr.StringParameter


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

        description = new StringParameter(this, "description");
        TextStyle style = new TextStyle(description, "_style");
        style.height.setExpression("10");
        style.width.setExpression("70");

        author = new StringAttribute(this, "author");
View Full Code Here


     @param name The name of the parameter.
     *  @return The documentation for the given parameter, or null if there
     *   is none.
     */
    public String getParameterDoc(String name) {
        StringParameter parameterAttribute = (StringParameter) getAttribute(name
                + " (parameter)");
        if (parameterAttribute != null) {
            return parameterAttribute.getExpression();
        }
        // Might be a port-parameter.  Try that.
        parameterAttribute = (StringParameter) getAttribute(name
                + " (port-parameter)");
        if (parameterAttribute != null) {
            return parameterAttribute.getExpression();
        }
        return null;
    }
View Full Code Here

                    modifier = " (port-parameter)";
                }
                String name = attribute.getName() + modifier;
                if (getAttribute(name) == null) {
                    try {
                        new StringParameter(this, name);
                    } catch (KernelException e) {
                        throw new InternalErrorException(e);
                    }
                }
            }
View Full Code Here

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

        startTime = new StringParameter(this, "startTime");
        startTime.setExpression("12:00 pm");
    }
View Full Code Here

        dataReceived = new TypedIOPort(this, "dataReceived");
        dataReceived.setOutput(true);
        dataReceived.setTypeEquals(new ArrayType(BaseType.UNSIGNED_BYTE));

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

        // Enumerate the available ports.
        Enumeration ports = CommPortIdentifier.getPortIdentifiers();
        String defaultChoice = null;
View Full Code Here

        new Parameter(directoryOrURL, "allowFiles", BooleanToken.FALSE);
        new Parameter(directoryOrURL, "allowDirectories", BooleanToken.TRUE);

        output.setTypeEquals(new ArrayType(BaseType.STRING));

        pattern = new StringParameter(this, "pattern");
        pattern.setExpression("");

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

        compile = new Parameter(this, "compile");
        compile.setTypeEquals(BaseType.BOOLEAN);
        compile.setExpression("true");

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

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

        generateComment = new Parameter(this, "generateComment");
        generateComment.setTypeEquals(BaseType.BOOLEAN);
        generateComment.setExpression("true");

        generateCpp = new Parameter(this, "generateCpp");
        generateCpp.setTypeEquals(BaseType.BOOLEAN);
        generateCpp.setExpression("false");

        generateJNI = new Parameter(this, "generateJNI");
        generateJNI.setTypeEquals(BaseType.BOOLEAN);
        generateJNI.setExpression("true");
        // Hide the generateJNI parameter from the user.
        generateJNI.setVisibility(Settable.EXPERT);

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

        measureTime = new Parameter(this, "measureTime");
        measureTime.setTypeEquals(BaseType.BOOLEAN);
        measureTime.setExpression("false");

        overwriteFiles = new Parameter(this, "overwriteFiles");
        overwriteFiles.setTypeEquals(BaseType.BOOLEAN);
        overwriteFiles.setExpression("true");

        padBuffers = new Parameter(this, "padBuffers");
        padBuffers.setTypeEquals(BaseType.BOOLEAN);
        padBuffers.setExpression("true");

        run = new Parameter(this, "run");
        run.setTypeEquals(BaseType.BOOLEAN);
        run.setExpression("true");

        sourceLineBinding = new Parameter(this, "sourceLineBinding");
        sourceLineBinding.setTypeEquals(BaseType.BOOLEAN);
        sourceLineBinding.setExpression("false");

        target = new StringParameter(this, "target");
        target.setExpression("default");
        _updateTarget();

        _attachText("_iconDescription", "<svg>\n"
                + "<rect x=\"-50\" y=\"-20\" width=\"100\" height=\"40\" "
View Full Code Here

        A.setTypeEquals(BaseType.FIX);

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

        operation = new StringParameter(this, "operation");
        operation.setExpression("=");
        operation.addChoice("=");
        operation.addChoice("!=");
        operation.addChoice("<");
        operation.addChoice("<=");
View Full Code Here

        A.setTypeEquals(BaseType.FIX);

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

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

        A.setTypeEquals(BaseType.FIX);

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

        operation = new StringParameter(this, "operation");
        operation.setExpression("AND");
        operation.addChoice("AND");
        operation.addChoice("OR");
        operation.addChoice("NAND");
        operation.addChoice("NOR");
View Full Code Here

TOP

Related Classes of ptolemy.data.expr.StringParameter

Copyright © 2018 www.massapicom. 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.