J-Sim v1.2.1-p7 API

drcl.ruv
Class WaitUntil

java.lang.Object
  extended bydrcl.ruv.WaitUntil
All Implemented Interfaces:
java.lang.Runnable

public class WaitUntil
extends java.lang.Object
implements java.lang.Runnable

The class provides different ways to stop the current execution until a condition is met. Use one of the constructors to start the wait.


Constructor Summary
WaitUntil(ACARuntime r, double stopAt)
          The execution is blocked until the runtime stops (at the time specified).
WaitUntil(Shell shell_, java.lang.String cmd_)
          The execution is blocked until the command (interpreted by the shell) returns an affirmative result.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaitUntil

public WaitUntil(ACARuntime r,
                 double stopAt)
          throws java.lang.InterruptedException
The execution is blocked until the runtime stops (at the time specified).


WaitUntil

public WaitUntil(Shell shell_,
                 java.lang.String cmd_)
          throws java.lang.InterruptedException
The execution is blocked until the command (interpreted by the shell) returns an affirmative result.

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

J-Sim v1.2.1-p7 API

Copyright © 1998-2003 Distributed Real-time Computing Lab (DRCL). All Rights Reserved.     ~ To J-Sim Home ~