Package ptolemy.actor

Examples of ptolemy.actor.Director


                throw new InternalErrorException(this, ex,
                        "Failed to cast toplevel '" + toplevel
                                + "' to a CompositeActor");
            }

            Director director = compositeActor.getDirector();

            // If we save a blank model, then there might not be a director.
            Parameter iterations = (StringParameter) getAttribute("iterations");

            if (director == null) {
                iterations.setExpression("1000");
            } else {
                Attribute directorIterations = director
                        .getAttribute("iterations");

                if (directorIterations != null) {
                    Token iterationsToken = ((Parameter) directorIterations)
                            .getToken();
View Full Code Here


     *  CTTransparentDirector. Otherwise, do nothing.
     *  @exception IllegalActionException If tentative states cannot
     *  be emitted.
     */
    public void emitCurrentStates() throws IllegalActionException {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            ((CTTransparentDirector) director).emitCurrentStates();
        }
    }
View Full Code Here

     *  director if it is an instance of
     *  CTTransparentDirector. Otherwise, do nothing.
     *  @exception IllegalActionException If there is no marked state.
     */
    public void goToMarkedState() throws IllegalActionException {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            ((CTTransparentDirector) director).goToMarkedState();
        }
    }
View Full Code Here

     *  that this composite actor does not have an event at the
     *  current time.
     *  @return True if there is an event at the current time.
     */
    public boolean hasCurrentEvent() {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) director).hasCurrentEvent();
        }
        return false;
    }
View Full Code Here

     *  CTTransparentDirector. Otherwise, return true, which indicates
     *  the current step size is accurate w.r.t. outputs.
     *  @return True if the current step size is accurate w.r.t. outputs.
     */
    public boolean isOutputAccurate() {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) director).isOutputAccurate();
        }
        return true;
    }
View Full Code Here

     *  the current step size is accurate w.r.t. the current states.
     *  @return True if the current step size is accurate w.r.t. the current
     *  states.
     */
    public boolean isStateAccurate() {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) director).isStateAccurate();
        }
        return true;
    }
View Full Code Here

    /** Call the markState() method of the current refinement director if it
     *  is an instance of CTTransparentDirector. Otherwise, do nothing.
     */
    public void markState() {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            ((CTTransparentDirector) director).markState();
        }
    }
View Full Code Here

     *  CTTransparentDirector. Otherwise, return
     *  java.lang.Double.MAX_VALUE.
     *  @return The predicted step size.
     */
    public double predictedStepSize() {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) director).predictedStepSize();
        }
        return java.lang.Double.MAX_VALUE;
    }
View Full Code Here

     *  not an instance of CTTransparentDirector, return true always.
     *  @return True if all dynamic actors are prefired.
     *  @exception IllegalActionException If the local director throws it.
     */
    public boolean prefireDynamicActors() throws IllegalActionException {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) director).prefireDynamicActors();
        }
        return true;
    }
View Full Code Here

     *  CTTransparentDirector. Otherwise, return the current step size
     *  of the executive director.
     *  @return The refined step size.
     */
    public double refinedStepSize() {
        Director director = _current.getDirector();
        if (director instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) director).refinedStepSize();
        }
        return ((CTGeneralDirector) getExecutiveDirector())
                .getCurrentStepSize();
View Full Code Here

TOP

Related Classes of ptolemy.actor.Director

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.