Examples of Case


Examples of ptolemy.actor.lib.hoc.Case

     *  dynamic actors.
     *  @exception IllegalActionException If the current states can not
     *  be emitted.
     */
    public void emitCurrentStates() throws IllegalActionException {
        Case container = (Case) getContainer();
        Actor actor = container.getCurrentRefinement();
        if (actor instanceof CTDynamicActor) {
            ((CTDynamicActor) actor).emitCurrentStates();
        }
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

    /** Restore the states of all the enabled refinements to the
     *  previously marked states.
     */
    public void goToMarkedState() throws IllegalActionException {
        Case container = (Case) getContainer();
        Actor actor = container.getCurrentRefinement();
        if (actor instanceof CTStatefulActor) {
            ((CTStatefulActor) actor).goToMarkedState();
        }
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

    /** Return true if the enabled refinements may produce events.
     *  @return True if the enabled refinements may produce events.
     */
    public boolean hasCurrentEvent() {
        Case container = (Case) getContainer();
        Actor actor = container.getCurrentRefinement();
        if (actor instanceof CTEventGenerator) {
            return ((CTEventGenerator) actor).hasCurrentEvent();
        }
        return false;
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

    /** Retun true if all the current refinement has accurate output with
     *  the current step size.
     *  @return True if the current refinement has accurate output.
     */
    public boolean isOutputAccurate() {
        Case container = (Case) getContainer();
        Actor refinement = container.getCurrentRefinement();
        if (refinement instanceof CTStepSizeControlActor) {
            return ((CTStepSizeControlActor) refinement).isOutputAccurate();
        }
        return true;
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

     *  current step size.
     *  @return True if all the refinements can resolve their states with the
     *  current step size.
     */
    public boolean isStateAccurate() {
        Case container = (Case) getContainer();
        Actor refinement = container.getCurrentRefinement();
        if (refinement instanceof CTStepSizeControlActor) {
            return ((CTStepSizeControlActor) refinement).isStateAccurate();
        }
        return true;
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

    }

    /** Make the current states of all the enabled refinements.
     */
    public void markState() {
        Case container = (Case) getContainer();
        Actor actor = container.getCurrentRefinement();
        if (actor instanceof CTStatefulActor) {
            ((CTStatefulActor) actor).markState();
        }
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

     *  If a refinement is not a CTStepSizeControlActor, then
     *  its prediction is Double.MAX_VALUE.
     *  @return The predicted next step size.
     */
    public double predictedStepSize() {
        Case container = (Case) getContainer();
        Actor refinement = container.getCurrentRefinement();
        if (refinement instanceof CTStepSizeControlActor) {
            return ((CTStepSizeControlActor) refinement).predictedStepSize();
        }
        return Double.MAX_VALUE;
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

     *  prefired.
     *  @exception IllegalActionException If the local directors of refinements
     *  throw it.
     */
    public boolean prefireDynamicActors() throws IllegalActionException {
        Case container = (Case) getContainer();
        Actor refinement = container.getCurrentRefinement();
        if (refinement instanceof CTTransparentDirector) {
            return ((CTTransparentDirector) refinement).prefireDynamicActors();
        }
        return true;
    }
View Full Code Here

Examples of ptolemy.actor.lib.hoc.Case

     *  value between current step size of the executive director and
     *  refined step size from enabled transition.
     *  @return The refined step size.
     */
    public double refinedStepSize() {
        Case container = (Case) getContainer();
        Actor refinement = container.getCurrentRefinement();
        if (refinement instanceof CTStepSizeControlActor) {
            return ((CTStepSizeControlActor) refinement).refinedStepSize();
        }
        CTGeneralDirector executiveDirector = getExecutiveCTGeneralDirector();
        return executiveDirector.getCurrentStepSize();
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.