All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jDisco.Condition

public abstract interface Condition
This interface is used in combination with the waitUntil-method for specifying state-events.

waitUntil(cond), where cond is a Condition-object, causes the active discrete process, current, to become passive (idle) over a period which is planned to last until the test-method of cond evaluates to true.

Example:


    waitUntil(new Condition() {
        public void test() {
            return pressure.state >= 200;
        }
    }); 
 

See Also:
waitUntil, waitUntil, waitUntil, waitUntil

Method Index

 o test()
Returns true if the condition is fulfilled; false, otherwise.

Methods

 o test
 public abstract boolean test()
Returns true if the condition is fulfilled; false, otherwise.


All Packages  Class Hierarchy  This Package  Previous  Next  Index