Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.InternalErrorException


            CompositeActor executable = (CompositeActor) _model;

            _manager = executable.getManager();

            if (_manager == null) {
                throw new InternalErrorException("No manager!");
            }

            if (_debugging) {
                _manager.addDebugListener(this);
View Full Code Here


        case _TAN:
            result = Math.tan(in);
            break;

        default:
            throw new InternalErrorException(
                    "Invalid value for _function private variable. "
                            + "TrigFunction actor (" + getFullName() + ")"
                            + " on function type " + _function);
        }
View Full Code Here

        try {
            newObject.output.setTypeAtLeast(ArrayType
                    .elementType(newObject.values));
        } catch (IllegalActionException e) {
            throw new InternalErrorException(e);
        }

        return newObject;
    }
View Full Code Here

                            try {
                                _multicastSocket = new MulticastSocket(
                                        newSocketNumber);
                            } catch (Exception ex) {
                                throw new InternalErrorException(this, ex,
                                        "Couldn't open new socket number "
                                                + newSocketNumber);
                            }

                            if (_address != null) {
                                try {
                                    _multicastSocket.joinGroup(_address);
                                } catch (IOException exp) {
                                    throw new IllegalActionException(
                                            "can't join the multicast group"
                                                    + exp);
                                }
                            }
                        }
                    } else if ((_socket != null)
                            && (newSocketNumber != _socket.getLocalPort())) {
                        synchronized (_syncSocket) {
                            if (_inReceive) {
                                // Wait for receive to finish, if it
                                // does not take very long that is.
                                try {
                                    _syncSocket.wait(444);
                                } catch (InterruptedException ex) {
                                    throw new IllegalActionException(this, ex,
                                            "Interrupted while waiting");
                                }

                                // Either I've been notified that receive()
                                // has completed, or the timeout has occurred.
                                // It does not matter which.  Either way I am
                                // now ready to close and re-open the socket.
                            }

                            _socket.close();

                            try {
                                _socket = new DatagramSocket(newSocketNumber);
                            } catch (SocketException ex) {
                                throw new InternalErrorException(this, ex,
                                        "Couldn't open new socket number "
                                                + newSocketNumber);
                            }
                        }
                    }
View Full Code Here

                try {
                    _fireIsWaiting = true;
                    _syncFireAndThread.wait();
                    _fireIsWaiting = false;
                } catch (InterruptedException ex) {
                    throw new InternalErrorException(this, ex,
                            "!!fire()'s wait interrupted!!");

                    // This finally block breaks Jode.
                } finally {
                    if (_stopFire) {
View Full Code Here

        try {
            if (trigger.hasToken(0)) {
                return true;
            }
        } catch (IllegalActionException e) {
            throw new InternalErrorException("Token mismatch.");
        }

        return false;
    }
View Full Code Here

        try {
            newObject.output.setTypeAtLeast(ArrayType
                    .elementType(newObject.values));
        } catch (IllegalActionException e) {
            // Should have been caught before.
            throw new InternalErrorException(e);
        }

        return newObject;
    }
View Full Code Here

            _opaque = false;
            _workspace.incrVersion();
        } catch (NameDuplicationException ex) {
            // Should never happen.
            throw new InternalErrorException("Duplicated name when "
                    + "constructing the subsystem" + ex.getMessage());
        } finally {
            _workspace.doneWriting();
        }
View Full Code Here

            if (_tableau != null) {
                try {
                    _tableau.setContainer(null);
                    _effigy.setContainer(null);
                } catch (Exception e) {
                    throw new InternalErrorException(e);
                }
            }
            _tableau = null;
            _graph = null;
        } else {
View Full Code Here

            _entity = parser.parse(null, moml);
            ParserAttribute parserAttribute = new ParserAttribute(_entity,
                    "_parser");
            parserAttribute.setParser(parser);
        } catch (Exception ex) {
            throw new InternalErrorException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.InternalErrorException

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.