Package ptolemy.actor

Examples of ptolemy.actor.Manager.execute()


                    if ((manager != null)
                            && (manager.getState() == Manager.IDLE)) {
                        // Instead of calling manager.startRun(),
                        // call manager.execute().
                        // Otherwise applets have problems.
                        manager.execute();
                    }
                }
            } catch (ptolemy.kernel.util.KernelException ex) {
                // Should be thrown only if the manager is not idle, or
                // if the parameter is not boolean valued.
View Full Code Here


        }

        _setAttribute(model, args);

        try {
            manager.execute();
        } catch (KernelException ex) {
            throw new IllegalActionException(ex + "Execution failed.");
        }

        return _getResult(model, resultLabels);
View Full Code Here

                model.setManager(new Manager(model.workspace(), "manager"));
                manager = model.getManager();
            }

            long startTime = System.currentTimeMillis();
            manager.execute();
            System.out.println("Execution stats:");
            System.out.println(timeAndMemory(startTime));
        } catch (KernelException ex) {
            // Model is already running.  Ignore.
            System.out.println("Exception = " + ex);
View Full Code Here

                + " ms. creating the model.");
        System.out.println(modelName + ": Stats before execution:    "
                + Manager.timeAndMemory(startTime, totalMemory1, freeMemory1));

        // Second, we run and print memory stats.
        manager.execute();

        long totalMemory2 = runtime.totalMemory() / 1024;
        long freeMemory2 = runtime.freeMemory() / 1024;
        String standardStats = Manager.timeAndMemory(startTime, totalMemory2,
                freeMemory2);
View Full Code Here

        System.out.println(modelName + ": Stats before execution:    "
                + Manager.timeAndMemory(startTime, totalMemory1, freeMemory1));

        // Second, we run and print memory stats.
        manager.execute();

        long totalMemory2 = runtime.totalMemory() / 1024;
        long freeMemory2 = runtime.freeMemory() / 1024;
        String standardStats = Manager.timeAndMemory(startTime, totalMemory2,
                freeMemory2);
View Full Code Here

                    manager = new Manager(actor.workspace(), "manager");
                    actor.setManager(manager);
                }

                //manager.addExecutionListener(this);
                manager.execute();
            }
        }

        return demosURL;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.