Examples of fireAt()


Examples of ptolemy.actor.Director.fireAt()

        } else {
            double meanTimeValue = ((DoubleToken)meanTime.getToken()).doubleValue();
            double exp = -Math.log((1 - Math.random())) * meanTimeValue;
            Director director = getDirector();
            $ASSIGN$_nextFiringTime(director.getModelTime().add(exp));
            director.fireAt(this, _nextFiringTime);
        }
    }

    /**    
     * Update the state of the actor and schedule the next firing,
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        if (_boundaryCrossed) {
            double meanTimeValue = ((DoubleToken)meanTime.getToken()).doubleValue();
            double exp = -Math.log((1 - Math.random())) * meanTimeValue;
            Director director = getDirector();
            $ASSIGN$_nextFiringTime(director.getModelTime().add(exp));
            director.fireAt(this, _nextFiringTime);
        }
        return super.postfire();
    }

    private Token _getValue(int index) throws IllegalActionException  {
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

                if (director != null) {
                    Time currentTime = director.getModelTime();

                    if (newStopTime.compareTo(currentTime) > 0) {
                        director.fireAt(this, newStopTime);
                    } else {
                        throw new IllegalActionException(this, "The stop time "
                                + "is earlier than the current time.");
                    }
                }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        _stopTime = new Time(getDirector(), stopTimeValue);

        Time currentTime = director.getModelTime();

        if (!_stopTime.isInfinite() && (_stopTime.compareTo(currentTime) > 0)) {
            director.fireAt(this, _stopTime);
            _executing = true;
        }
    }

    /** Return false if the current time is greater than or equal to
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        public void fireAt(Actor actor, Time time)
                throws IllegalActionException {
            Director director = IterateOverArray.this.getExecutiveDirector();

            if (director != null) {
                director.fireAt(actor, time);
            }
        }

        /** Delegate by calling fireAtCurrentTime() on the director
         *  of the container's container.
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

        if (container instanceof Actor) {
            Actor modalModel = (Actor) container;
            Director executiveDirector = modalModel.getExecutiveDirector();

            if (executiveDirector != null) {
                executiveDirector.fireAt(modalModel, time);
            } else {
                setModelTime(time);
            }
        }
    }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

            Director executiveDirector = container.getExecutiveDirector();
            Time currentTime = getModelTime();

            if (executiveDirector != null) {
                // Not at the top level.
                executiveDirector.fireAt(container, currentTime
                        .add(periodValue));
            } else {
                // At the top level.
                setModelTime(currentTime.add(periodValue));
            }
View Full Code Here

Examples of ptolemy.actor.Director.fireAt()

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

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

Examples of ptolemy.actor.Director.fireAt()

        }

        Director director = getDirector();

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

Examples of ptolemy.actor.Director.fireAt()

            double meanTimeValue = ((DoubleToken) meanTime.getToken())
                    .doubleValue();
            double exp = -Math.log((1 - Math.random())) * meanTimeValue;
            Director director = getDirector();
            _nextFiringTime = director.getModelTime().add(exp);
            director.fireAt(this, _nextFiringTime);
        }
    }

    /** Update the state of the actor and schedule the next firing,
     *  if appropriate.
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.