All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nfunk.jepexamples.ThreadTestThread Maven / Gradle / Ivy

Go to download

JEP is a Java library for parsing and evaluating mathematical expressions. Use groupId org.fudaa to deploy it in maven central

The newest version!
/*****************************************************************************

 JEP 2.4.1, Extensions 1.1.1
      April 30 2007
      (c) Copyright 2007, Nathan Funk and Richard Morris
      See LICENSE-*.txt for license information.

*****************************************************************************/

package org.nfunk.jepexamples;


/**
 * The ThreadTestThread waits for 5 seconds before calling the evaluate method
 * of the ThreadTest instance.
 * 

* Thanks to Matthew Baird and Daniel Teng for this code. */ public class ThreadTestThread extends Thread { ThreadTest test; public ThreadTestThread(ThreadTest test_in) { test = test_in; } public void run() { try { Thread.sleep(5000); test.evaluate(); Thread.yield(); } catch (Exception e) { System.out.println(e.getMessage()); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy