Package ptolemy.moml

Class MoMLSimpleTimeoutApplication

  • All Implemented Interfaces:
    ExecutionListener, ChangeListener

    public class MoMLSimpleTimeoutApplication
    extends MoMLSimpleApplication
    A simple application that reads in a .xml file as a command line argument, runs it and terminates the run after a time out.
    Since:
    Ptolemy II 10.0
    Version:
    $Id: MoMLSimpleTimeoutApplication.java 61755 2011-08-08 20:17:11Z cxh $
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (eal)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Detail

      • MoMLSimpleTimeoutApplication

        public MoMLSimpleTimeoutApplication​(java.lang.String xmlFileName)
                                     throws java.lang.Throwable
        Parse the xml file and run it. After 5 seconds, call wrapup on the manager.
        Parameters:
        xmlFileName - A string that refers to an MoML file that contains a Ptolemy II model. The string should be a relative pathname.
        Throws:
        java.lang.Throwable - If there was a problem parsing or running the model.
    • Method Detail

      • waitForFinish

        public void waitForFinish()
        Wait for all executing runs to finish or 5 seconds to pass, then return.
        Overrides:
        waitForFinish in class MoMLSimpleApplication