DRCL J-Sim 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)
          The execution is blocked (on itself) until the runtime finishes all the events.
WaitUntil(ACARuntime r, double stopAt)
          The execution is blocked (on itself) until the runtime stops (at the time specified).
WaitUntil(ACARuntime r, double stopAt, java.lang.Object lock_)
          The execution is blocked (on lock) until the runtime stops (at the time specified).
WaitUntil(ACARuntime r, java.lang.Object lock_)
          The execution is blocked (on lock) until the runtime finishes all the events.
WaitUntil(Shell shell_, java.lang.String cmd_)
          The execution is blocked (on the shell) until the command (interpreted by the shell) returns an affirmative result.
WaitUntil(Shell shell_, java.lang.String cmd_, java.lang.Object lock_)
          The execution is blocked (on lock) until the command (interpreted by the shell) returns an affirmative result.
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
equals, 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 (on itself) until the runtime stops (at the time specified).


WaitUntil

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


WaitUntil

public WaitUntil(ACARuntime r)
          throws java.lang.InterruptedException
The execution is blocked (on itself) until the runtime finishes all the events.


WaitUntil

public WaitUntil(ACARuntime r,
                 java.lang.Object lock_)
          throws java.lang.InterruptedException
The execution is blocked (on lock) until the runtime finishes all the events.


WaitUntil

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


WaitUntil

public WaitUntil(Shell shell_,
                 java.lang.String cmd_,
                 java.lang.Object lock_)
          throws java.lang.InterruptedException
The execution is blocked (on lock) 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

DRCL J-Sim API

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