Examples of CTMultiSolverDirector

This director handles both predictable breakpoints, whose appearance can be assured before reaching the time points they happen, and unpredictable breakpoints, whose appearance is unknown before the simulation passes the time points they happen.

This director can only be a top-level director. For a CT model as an opaque composite actor inside another model, use CTMixedSignalDirector (if the outer model is a discrete-event model) or CTEmbeddedDirector (if the outer model is a CT model or a Modal model with a HSFSMDirector.)

This director recognizes actors that implement the CTStepSizeControlActor interface and adjusts the step size by polling such actors. If all actors are content with the current step size, then it attempts to raise the step size. If any actor is not satisfied with the current step size, then this director reduces the step size. A special case is that if there are no CT step size control actors, then this director uses 5 times of the current step size or the maximum step size, whichever is smaller.

This director has two more parameters than the CTDirector base class.

@see ptolemy.domains.ct.kernel.CTDirector @author Jie Liu, Haiyang Zheng @version $Id: CTMultiSolverDirector.java,v 1.203 2007/12/07 06:27:17 cxh Exp $ @since Ptolemy II 0.2 @Pt.ProposedRating Yellow (hyzheng) @Pt.AcceptedRating Red (hyzheng)

Examples of ptolemy.domains.ct.kernel.CTMultiSolverDirector

            NameDuplicationException {
        super(workspace);
        setName("Thermostat");

        // the top level CT director
        CTMultiSolverDirector topdir = new CTMultiSolverDirector(this,
                "CTTopLevelDirector");

        //StreamListener dbl = new StreamListener();
        //topdir.addDebugListener(dbl);
        // a const source
View Full Code Here

Examples of ptolemy.domains.ct.kernel.CTMultiSolverDirector

        super(workspace);

        // Set up the top level composite actor, director and manager
        this.setName("HelicopterSystem");

        CTMultiSolverDirector dir = new CTMultiSolverDirector(this,
                "OuterDirector");

        //dir.addDebugListener(new StreamListener());
        // ---------------------------------
        // Create the controller actors.
View Full Code Here

Examples of ptolemy.domains.ct.kernel.CTMultiSolverDirector

        Manager manager = new Manager(workspace, "Manager");
        setManager(manager);

        // Set up the top level composite actor, director and manager
        CTMultiSolverDirector director = new CTMultiSolverDirector(this,
                "CTMultiSolverDirector");
        setDirector(director);
        director.stopTime.setToken(new DoubleToken(50.0));

        // To get debug outputs, uncomment these:
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.