Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.InvalidStateException


     */
    protected void _branchSucceeded(int branchID) {
        CSPDirector director = _getDirector();
        synchronized (director) {
            if (_branchTrying != branchID) {
                throw new InvalidStateException(((Nameable) getParent())
                        .getName()
                        + ": branchSucceeded called with a branch id "
                        + branchID
                        + ", which is not "
                        + "equal to the id of the branch registered as trying,"
View Full Code Here


                            ._isConditionalSendWaiting()
                            || ((CSPReceiver) receivers[copy])._isPutWaiting()) {
                        // Should never happen that a put or a ConditionalSend
                        // is already at the receiver. This would mean there
                        // was more than one output connected to input port.
                        throw new InvalidStateException(
                                ((Nameable) controller.getParent()).getName()
                                        + ": ConditionalSend branch is trying to rendezvous "
                                        + "with a receiver that already has a put or a "
                                        + "ConditionalSend waiting.");
                    }
View Full Code Here

            if (_type == CONTINUOUS) {
                return _token;
            } else if (_type == DISCRETE) {
                return super.get();
            } else {
                throw new InvalidStateException(getContainer(),
                        "get() is called before the signal type of this port"
                                + " has been set. Bug in CTScheduler?");
            }
        } else {
            throw new NoTokenException(getContainer(),
View Full Code Here

                try {
                    // Find the least solution (most specific types)
                    solver.solveLeast();
                } catch (InvalidStateException ex) {
                    throw new InvalidStateException(topLevel, ex,
                            "The basic type lattic was: "
                                    + TypeLattice.basicLattice());
                }

                // If some inequalities are not satisfied, or type variables
View Full Code Here

                            if (port.isOutput()) {
                                _signalTypeMap.propagateType(port);
                            }
                        } else {
                            throw new InvalidStateException(port,
                                    " signalType not understandable.");
                        }
                    } else if (a instanceof CTCompositeActor) {
                        // Assume all the ports of a CTCompositeActor
                        // to be continuous unless otherwise specified.
View Full Code Here

            actor._cancelDelay();
            return;
        }

        if (delta < 0.0) {
            throw new InvalidStateException(((Nameable) actor).getName()
                    + ": delayed for negative time.");
        } else {
            _actorsDelayed++;

            // Enter the actor and the time to wake it up into the
View Full Code Here

     */
    private Time _getNextTime() {
        if (_delayedActorList.size() > 0) {
            return ((DelayListLink) _delayedActorList.get(0))._resumeTime;
        } else {
            throw new InvalidStateException("CSPDirector.getNextTime(): "
                    + " called in error.");
        }
    }
View Full Code Here

            runAheadLength.setTypeEquals(BaseType.DOUBLE);
        } catch (IllegalActionException e) {
            //Should never happens. The parameters are always compatible.
            throw new InternalErrorException("Parameter creation error.");
        } catch (NameDuplicationException ex) {
            throw new InvalidStateException(this, "Parameter name duplication.");
        }
    }
View Full Code Here

    public void setAuxVariables(int index, double value)
            throws InvalidStateException {
        try {
            _auxVariables[index] = value;
        } catch (ArrayIndexOutOfBoundsException e) {
            throw new InvalidStateException(this,
                    "index out of the range of the auxVariables.");
        }
    }
View Full Code Here

                            + (k[4] * _B[5][4]) + (k5 * _B[5][5])));
            integrator.setTentativeState(outputValue);
            break;

        default:
            throw new InvalidStateException(this,
                    "execution sequence out of range.");
        }

        integrator.output.broadcast(new DoubleToken(outputValue));
    }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.InvalidStateException

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.