Package ptolemy.kernel.util

Examples of ptolemy.kernel.util.KernelRuntimeException


                }

                return symbolicSchedule;
            }
        } catch (Throwable throwable) {
            throw new KernelRuntimeException(null, throwable,
                    "Error converting cluster hierarchy to " + "schedule.\n"
                            + throwable.getMessage());
        }
    }
View Full Code Here


        //         // this class so that we don't actually generate code for it.
        //         args[0] = "java.lang.Object";
        //         // As of soot 2.0.1, this is all that is required.
        //         //        soot.Main.main(args);
        if (!soot.options.Options.v().parse(args)) {
            throw new KernelRuntimeException("Option parse error");
        }
        PackManager.v().getPack("wjtp").apply();
    }
View Full Code Here

        try {
            Manager manager = new Manager(_toplevel.workspace(), "manager");
            _toplevel.setManager(manager);
            manager.preinitializeAndResolveTypes();
        } catch (Exception exception) {
            throw new KernelRuntimeException(exception,
                    "Could not initialize composite actor");
        }
    }
View Full Code Here

                                    scratchClass = superC;
                                }
                            }
                        } catch (Exception ex) {
                            throw new KernelRuntimeException(ex,
                                    "foldClass: Problem with "
                                            + "retrieveActiveBody()");
                        }

                        SiteInliner.inlineSite(invokeMethod, stmt, newMethod);
View Full Code Here

            }
            return next;
        }

        public void remove() {
            throw new KernelRuntimeException();
        }
View Full Code Here

     @exception IllegalActionException If the expression is not valid, or
     *   its value is not acceptable to the container or the listeners.
     */
    public Collection validate() throws IllegalActionException {
        if (getName().equals("KernelRuntimeException")) {
            throw new KernelRuntimeException(this,
                    "Name was \"KernelRuntimeException\", so we throw it");
        }
        throw new IllegalActionException(this,
                "InvalidStringAttributeAlways throws an exception in validate()");
    }
View Full Code Here

                    try {
                        GTIngredient newIngredient = _createTemporaryIngredient(listedIngerdient);
                        ComboElement element = new ComboElement(newIngredient);
                        _classSelector.addItem(element);
                    } catch (Exception e) {
                        throw new KernelRuntimeException(e,
                                "Unable to create criterion or operation from "
                                        + "class \""
                                        + listedIngerdient.getName() + "\".");
                    }
                }
View Full Code Here

            if (config != null) {
                break;
            }
        }
        if (config == null) {
            throw new KernelRuntimeException("Could not find "
                    + "configuration, list of configurations was "
                    + configsList.size() + " elements, all were null.");
        }
        // Look up the attribute (if it exists)
        StringAttribute multipleDocumentationAllowed = (StringAttribute) config
View Full Code Here

                    if (attribute == null) {
                        try {
                            attribute = new PatternObjectAttribute(
                                    replacementObject, "patternObject");
                        } catch (KernelException e) {
                            throw new KernelRuntimeException(e, "Unable to "
                                    + "create patternObject attribute.");
                        }
                    }
                    if (!attribute.getExpression().equals(patternObjectName)) {
                        _setPatternObject(replacementObject, patternObjectName,
View Full Code Here

                    _setOrClearPatternObjectAttributes(
                            (CompositeEntity) object, isSet, null);
                }
            }
        } catch (KernelException e) {
            throw new KernelRuntimeException(e, "Cannot set attribute.");
        }
    }
View Full Code Here

TOP

Related Classes of ptolemy.kernel.util.KernelRuntimeException

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.