Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.InternalErrorException


                                            + k + " tokens available.");
                        }
                    }
                } catch (NoTokenException ex) {
                    // this shouldn't happen.
                    throw new InternalErrorException(this, ex, null);
                }
            }
        }

        _realStartTime = System.currentTimeMillis();
View Full Code Here


        super(workspace);

        try {
            setName(_STATIC_NAME);
        } catch (KernelException ex) {
            throw new InternalErrorException(
                    "Internal error when setting name to a GRScheduler");
        }
    }
View Full Code Here

                        port.get(i);
                    }
                }
            } catch (NoTokenException ex) {
                // this shouldn't happen.
                throw new InternalErrorException(this, ex, null);
            }
        }

        return wasTransferred;
    }
View Full Code Here

                                        + " tokens available.");
                    }
                }
            } catch (NoTokenException ex) {
                // this shouldn't happen.
                throw new InternalErrorException(this, ex, null);
            }
        }

        return wasTransferred;
    }
View Full Code Here

     *   an instance of CompositeEntity.
     */
    protected NamedObj _getContainedObject(NamedObj container,
            String relativeName) throws IllegalActionException {
        if (!(container instanceof CompositeEntity)) {
            throw new InternalErrorException("Expected "
                    + container.getFullName()
                    + " to be an instance of ptolemy.kernel.CompositeEntity, "
                    + "but it is " + container.getClass().getName());
        }

View Full Code Here

        SequenceToArray newObject = (SequenceToArray) (super.clone(workspace));
        try {
            newObject.output.setTypeAtLeast(ActorTypeUtil.arrayOf(
                    newObject.input, newObject.arrayLength));
        } catch (IllegalActionException e) {
            throw new InternalErrorException(e);
        }
        return newObject;
    }
View Full Code Here

            if (candidate instanceof Port) {
                boolean foundPort = false;
                actualPort = (Port) candidate;

                if (actualPort == null) {
                    throw new InternalErrorException(
                            "The target contains a null Port.");
                }

                for (int i = 0; i < _ports.size(); i++) {
                    Hashtable portInfo = (Hashtable) (_ports.elementAt(i));

                    if (actualPort == ((Port) portInfo
                            .get(ColumnNames.COL_ACTUAL_PORT))) {
                        foundPort = true;
                        break;
                    }
                }

                if (!foundPort) {
                    portsToBeRemoved.add(actualPort);
                }
            } else {
                throw new InternalErrorException("The target portList contains"
                        + " an object that is not of type Port.");
            }
        }

        Iterator actualPorts = portsToBeRemoved.iterator();
View Full Code Here

                    }
                }
            }

            if (!foundActualPort) {
                throw new InternalErrorException("Port stored in _ports "
                        + "not found in actual target.");
            }
        }
    }
View Full Code Here

        if (_initialToken != null) {
            try {
                setToken(_initialToken);
            } catch (IllegalActionException ex) {
                // should not occur
                throw new InternalErrorException(ex.getMessage());
            }
        } else {
            // must have an initial expression
            setExpression(_initialExpression);
        }
View Full Code Here

     */
    public void setExpression(String expr) {
        try {
            super.setExpression(expr);
        } catch (IllegalActionException e) {
            throw new InternalErrorException(e);
        }

        if (_debugging) {
            _debug("setExpression: " + expr);
        }
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.