Package ptolemy.actor.lib

Examples of ptolemy.actor.lib.Ramp


        director.iterations.setExpression("2400");
        setDirector(director);

        // Create the actors, and set their parameters.
        // First, the source, which counts up from 0.0 in steps of pi/100.
        Ramp ramp = new Ramp(this, "Ramp");
        ramp.step.setExpression("PI/100.0");

        // Next, the expression, for which we have to create an input port.
        Expression expression = new Expression(this, "Expression");
        TypedIOPort expInput = new TypedIOPort(expression, "ramp");
View Full Code Here


        // director.addDebugListener(new StreamListener());
        Manager manager = new Manager(w, "manager");
        toplevel.setManager(manager);

        Ramp ramp = new Ramp(toplevel, "ramp");
        Recorder recorder = new Recorder(toplevel, "recorder");
        recorder.capacity.setExpression("0");
        toplevel.connect(ramp.output, recorder.input);

        director.iterations.setExpression("10000");
View Full Code Here

public class TestModel extends TypedCompositeActor {
    public TestModel(Workspace workspace) throws Exception {
        super(workspace);

        // Construct the model.
        Ramp ramp = new Ramp(this, "ramp");
        _rec = new Recorder(this, "rec");
        connect(ramp.output, _rec.input);

        // Attach a director.
        SDFDirector dir = new SDFDirector(this, "director");
View Full Code Here

TOP

Related Classes of ptolemy.actor.lib.Ramp

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.