Package javax.media

Examples of javax.media.ClockStartedError


     */
    public synchronized void setTimeBase(TimeBase timebase)
        throws IncompatibleTimeBaseException
    {
        if(isStarted) {
            throw new ClockStartedError(
                "Cannot set time base on a Started Clock");
        }

        if( timebase == null ) {
            this.timebase = systemtimebase;
View Full Code Here


     * @exception  ClockStartedError
     *             If the Clock is Started.
     */
    public synchronized void setMediaTime(Time t) {
        if(isStarted) {
            throw new ClockStartedError(
                "Cannot set media time on a Started Clock");
        }

        mediaStartTime = t;
    }
View Full Code Here

     * @return     The actual rate set.
     *
     */
    public synchronized float setRate(float rate) {
        if(isStarted) {
            throw new ClockStartedError(
                "Cannot set rate on a Started Clock");
        }

        if( rate != 0.0F ) {
            this.rate = rate;
View Full Code Here

     */
    public synchronized void syncStart(Time t) {

        //  Enforce state prereqs
        if(isStarted) {
            throw new ClockStartedError(
                "syncStart() cannot be called on a started Clock");
        }

        long now = getTimeBase().getNanoseconds();
        long start = t.getNanoseconds();
View Full Code Here

                "Cannot add Controller to an Unrealized Player");
        }

        //  Enforce state reqs for this Player
        if(currentState == Started) {
            throw new ClockStartedError(
                "Cannot add Controller to a Started Player");
        }

        int controllerState = newController.getState();

        //  Enforce state reqs for new controller
        if( controllerState == Unrealized ||
            controllerState == Realizing )
        {
            throw new NotRealizedError(
                "Cannot add Unrealized Controller to a Player");
        }

        //  Enforce state reqs for this Player
        if(controllerState == Started) {
            throw new ClockStartedError(
                "Cannot add Started Controller to a Player");
        }

        //  Set the time base for the new Controller.  This may
        //  throw an IncompatibleTimeBaseException.
View Full Code Here

            throw new NotRealizedError(
                "Cannot remove Controller from an Unrealized Player");
        }

        if(currentState == Started) {
            throw new ClockStartedError(
                "Cannot remove Controller from a Started Player");
        }

        if( controllers.indexOf(oldController) == -1 ) {
            return;
View Full Code Here

     */
    @Override
  public final synchronized void syncStart(final Time t) {
        //  Enforce state prereqs
        if (currentState == Started) {
            throw new ClockStartedError(
                "syncStart() cannot be called on a started Clock");
        }

        //  Enforce state prereqs
        if(currentState != Prefetched) {
View Full Code Here

    public final synchronized void deallocate() {
        int state;

        //  Enforce state prereq
        if( currentState == Started ) {
            throw new ClockStartedError(
                "deallocate() cannot be called on a started Controller");
        }

        //  Kill any forward-transitioning thread
        synchronized ( threadqueueMutex )
View Full Code Here

                "Cannot add Controller to an Unrealized Player");
        }

        //  Enforce state reqs for this Player
        if(currentState == Started) {
            throw new ClockStartedError(
                "Cannot add Controller to a Started Player");
        }

        int controllerState = newController.getState();

        //  Enforce state reqs for new controller
        if( controllerState == Unrealized ||
            controllerState == Realizing )
        {
            throw new NotRealizedError(
                "Cannot add Unrealized Controller to a Player");
        }

        //  Enforce state reqs for this Player
        if(controllerState == Started) {
            throw new ClockStartedError(
                "Cannot add Started Controller to a Player");
        }

        //  Set the time base for the new Controller.  This may
        //  throw an IncompatibleTimeBaseException.
View Full Code Here

            throw new NotRealizedError(
                "Cannot remove Controller from an Unrealized Player");
        }

        if(currentState == Started) {
            throw new ClockStartedError(
                "Cannot remove Controller from a Started Player");
        }

        if( controllers.indexOf(oldController) == -1 ) {
            return;
View Full Code Here

TOP

Related Classes of javax.media.ClockStartedError

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.