Package ptolemy.data.expr

Examples of ptolemy.data.expr.FileParameter


        inputArray = new TypedIOPort(this, "inputArray", true, false);
        inputArray.setTypeAtLeast(ArrayType.ARRAY_BOTTOM);
        outputArray = new TypedIOPort(this, "outputArray", false, true);
        outputArray.setTypeSameAs(inputArray);

        modelFileOrURL = new FileParameter(this, "modelFileOrURL");
        maxOutputLength = new Parameter(this, "maxOutputLength");
        maxOutputLength.setTypeEquals(BaseType.INT);
        maxOutputLength.setExpression("1");
    }
View Full Code Here


     *   actor with this name.
     */
    public ModelDisplay(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        modelURL = new FileParameter(this, "modelURL");
        input = new TypedIOPort(this, "input", true, false);
        input.setTypeEquals(BaseType.STRING);
    }
View Full Code Here

     */
    public JAIImageReader(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        output.setTypeEquals(BaseType.OBJECT);
        fileOrURL = new FileParameter(this, "fileOrURL");
        fileOrURL.setExpression("$CLASSPATH/doc/img/PtolemyII.jpg");
    }
View Full Code Here

    public JAIWriter(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        input.setTypeEquals(BaseType.OBJECT);

        fileName = new FileParameter(this, "fileName");

        confirmOverwrite = new Parameter(this, "confirmOverwrite");
        confirmOverwrite.setTypeEquals(BaseType.BOOLEAN);
        confirmOverwrite.setToken(BooleanToken.TRUE);
    }
View Full Code Here

        // Set the type of the output port.
        //output.setMultiport(true);
        output.setTypeEquals(BaseType.OBJECT);

        fileOrURL = new FileParameter(this, "fileOrURL");
    }
View Full Code Here

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

        fileOrURL = new FileParameter(this, "fileOrURL");

        // To create the initial default KeyStore, do
        // cd $PTII; make ptKeystore
        // or set createFileOrURLIfNecessary to true.
        fileOrURL.setExpression("$PTII/ptKeystore");
View Full Code Here

    public MovieWriter(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        input.setTypeEquals(BaseType.OBJECT);

        fileOrURL = new FileParameter(this, "fileOrURL");
        fileOrURL.setExpression("$TMPDIR/movieOut.mov");

        confirmOverwrite = new Parameter(this, "confirmOverwrite");
        confirmOverwrite.setTypeEquals(BaseType.BOOLEAN);
        confirmOverwrite.setToken(BooleanToken.TRUE);
View Full Code Here

     */
    public StreamLoader(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        output.setTypeEquals(BaseType.OBJECT);
        fileOrURL = new FileParameter(this, "fileOrURL");
    }
View Full Code Here

     */
    public MovieReader(CompositeEntity container, String name)
            throws IllegalActionException, NameDuplicationException {
        super(container, name);
        output.setTypeEquals(BaseType.OBJECT);
        fileOrURL = new FileParameter(this, "fileOrURL");
        fileOrURL
                .setExpression("$CLASSPATH/ptolemy/actor/lib/jmf/MrPtolemy.mov");
    }
View Full Code Here

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

        fileNameOrURL = new FileParameter(this, "fileNameOrURL");

        synchronizedPlay = new Parameter(this, "synchronizedPlay");
        synchronizedPlay.setTypeEquals(BaseType.BOOLEAN);
        synchronizedPlay.setToken(BooleanToken.TRUE);

View Full Code Here

TOP

Related Classes of ptolemy.data.expr.FileParameter

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.