Examples of TypedIOPort


Examples of ptolemy.actor.TypedIOPort

        values.setExpression("{1}");
        repeat = new Parameter(this, "repeat", BooleanToken.FALSE);
        repeat.setTypeEquals(BaseType.BOOLEAN);
        holdLastOutput = new Parameter(this, "holdLastOutput", BooleanToken.FALSE);
        holdLastOutput.setTypeEquals(BaseType.BOOLEAN);
        enable = new TypedIOPort(this, "enable", true, false);
        enable.setTypeEquals(BaseType.BOOLEAN);
        output = new TypedIOPort(this, "output", false, true);
        output.setTypeAtLeast(ArrayType.elementType(values));
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     * an actor already in the container.
     */
    public Select(CompositeEntity container, String name) throws IllegalActionException, NameDuplicationException  {
        super(container, name);
        input.setMultiport(true);
        control = new TypedIOPort(this, "control", true, false);
        control.setTypeEquals(BaseType.INT);
        StringAttribute controlCardinal = new StringAttribute(control, "_cardinal");
        controlCardinal.setExpression("SOUTH");
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

        super(container, name);
        timeConstant = new Parameter(this, "timeConstant");
        timeConstant.setExpression("1.0");
        timeConstant.setTypeEquals(BaseType.DOUBLE);
        timeConstant.validate();
        adaptedReflectionCoefficients = new TypedIOPort(this, "adaptedReflectionCoefficients", false, true);
        adaptedReflectionCoefficients.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        output.setTypeAtLeast(input);
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     * @exception NameDuplicationException If the name coincides with
     * an actor already in the container.
     */
    public Sequencer(CompositeEntity container, String name) throws IllegalActionException, NameDuplicationException  {
        super(container, name);
        sequenceNumber = new TypedIOPort(this, "sequenceNumber", true, false);
        sequenceNumber.setTypeEquals(BaseType.INT);
        startingSequenceNumber = new Parameter(this, "startingSequenceNumber");
        startingSequenceNumber.setExpression("0");
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     * @exception NameDuplicationException If the container already has an
     * actor with this name.
     */
    public ComputeHistogram(CompositeEntity container, String name) throws IllegalActionException, NameDuplicationException  {
        super(container, name);
        input = new TypedIOPort(this, "input", true, false);
        input.setTypeEquals(BaseType.DOUBLE);
        output = new TypedIOPort(this, "output", false, true);
        output.setTypeEquals(new ArrayType(BaseType.INT));
        minimumValue = new Parameter(this, "minimumValue");
        minimumValue.setExpression("0.0");
        minimumValue.setTypeEquals(BaseType.DOUBLE);
        maximumValue = new Parameter(this, "maximumValue");
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     * an actor already in the container.
     */
    public Multiplexor(CompositeEntity container, String name) throws IllegalActionException, NameDuplicationException  {
        super(container, name);
        input.setMultiport(true);
        select = new TypedIOPort(this, "select", true, false);
        select.setTypeEquals(BaseType.INT);
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

        endIndex.setExpression("MaxInt");
        endIndex.setTypeEquals(BaseType.INT);
        maximumNumberOfPeaks = new Parameter(this, "maximumNumberOfPeaks");
        maximumNumberOfPeaks.setExpression("MaxInt");
        maximumNumberOfPeaks.setTypeEquals(BaseType.INT);
        input = new TypedIOPort(this, "input", true, false);
        peakValues = new TypedIOPort(this, "peakValues", false, true);
        peakIndices = new TypedIOPort(this, "peakIndices", false, true);
        (new SingletonParameter(peakValues, "_showName")).setToken(BooleanToken.TRUE);
        (new SingletonParameter(peakIndices, "_showName")).setToken(BooleanToken.TRUE);
        input.setTypeEquals(new ArrayType(BaseType.DOUBLE));
        peakValues.setTypeAtLeast(input);
        peakIndices.setTypeEquals(new ArrayType(BaseType.INT));
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     */
    public LinearDifferenceEquationSystem(CompositeEntity container, String name) throws IllegalActionException, NameDuplicationException  {
        super(container, name);
        input.setMultiport(false);
        output.setMultiport(false);
        state = new TypedIOPort(this, "state", false, true);
        A = new Parameter(this, "A");
        A.setExpression("[1.0]");
        A.setTypeEquals(BaseType.DOUBLE_MATRIX);
        B = new Parameter(this, "B");
        B.setExpression("[1.0]");
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

     * @exception NameDuplicationException If the name coincides with
     * an actor already in the container.
     */
    public BooleanSwitch(CompositeEntity container, String name) throws IllegalActionException, NameDuplicationException  {
        super(container, name);
        input = new TypedIOPort(this, "input", true, false);
        control = new TypedIOPort(this, "control", true, false);
        control.setTypeEquals(BaseType.BOOLEAN);
        trueOutput = new TypedIOPort(this, "trueOutput", false, true);
        falseOutput = new TypedIOPort(this, "falseOutput", false, true);
        trueOutput.setTypeAtLeast(input);
        falseOutput.setTypeAtLeast(input);
        StringAttribute controlCardinal = new StringAttribute(control, "_cardinal");
        controlCardinal.setExpression("SOUTH");
    }
View Full Code Here

Examples of ptolemy.actor.TypedIOPort

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

        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);
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.