Examples of fireAt()


Examples of ptolemy.actor.Director.fireAt()

            // The reason for this is that local time has not advanced,
            // so we can't be sure of any interval of future time over which
            // we will not produce an event. Only when the step size is
            // greater than zero, as we have speculatively executed into
            // the future, can we allow the enclosing director to advance time.
            enclosingDirector.fireAt((Actor) getContainer(), _currentTime);

            return _commit();
        }
    }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

            if (director == null) {
                director = this;
            }

            Time t = new Time(director, Long.parseLong(newTime));
            director.fireAt(container, t);
        } catch (Exception ex) {
            // We use MessageHandler instead of throwing an exception
            // because this method is called from C.
            // MessageHandler.error() will pop up a window with the
            // exception description and stack trace, and after the
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        if (eventTime >= 0.0) {
            Director director = getDirector();

            if (director != null) {
                director.fireAt(this, new Time(director, eventTime));
            } else {
                throw new IllegalActionException(this, "No director.");
            }
        }
    }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

            _circle.fillColor.setToken("{1.0, 0.0, 0.1, 0.7}");

            // Request refiring one second later to change
            // the icon back to blue.
            Director director = getDirector();
            director.fireAt(this, director.getModelTime().add(1.0));
        } else {
            // Set color to blue.
            _circle.fillColor.setToken("{0.0, 0.0, 1.0, 0.05}");
        }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        Nameable container = getContainer();
        if (container instanceof Actor) {
            Actor modalModel = (Actor) container;
            Director executiveDirector = modalModel.getExecutiveDirector();
            if (executiveDirector != null) {
                executiveDirector.fireAt(modalModel, time);
            } else {
                // FIXME: This does not look right!
                setModelTime(time);
            }
        }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

                if (_debugging) {
                    _debug("Request refiring by "
                            + executiveDirector.getFullName() + " at "
                            + getModelTime());
                }
                executiveDirector.fireAt(container, getModelTime());
            }
        }

        return result && !_stopRequested;
    }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        Director director = getDirector();
        Time time = director.getModelTime();
        count++;

        if (count >= 5) {
            director.fireAt(this, time.add(1.0));
            count = 0;
        } else {
            director.fireAt(this, time);
        }
    }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        if (count >= 5) {
            director.fireAt(this, time.add(1.0));
            count = 0;
        } else {
            director.fireAt(this, time);
        }
    }

    public void initialize() throws IllegalActionException {
        value = 0.0;
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

    public void initialize() throws IllegalActionException {
        value = 0.0;
        count = 0;

        Director director = getDirector();
        director.fireAt(this, director.getModelTime());
    }

    private double value = 0.0;

    private int count = 0;
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        super.fire();

        double firingPeriodValue = ((DoubleToken) firingPeriod.getToken())
                .doubleValue();
        Director director = getDirector();
        director.fireAt(this, director.getModelTime().add(firingPeriodValue));

        if (output.getWidth() > 0) {
            output.send(0, new IntToken(_count++));
        } else {
            ChangeRequest request = new ChangeRequest(this,
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.