eaLib API Docs
Last Modified : January 7 2002

mss.ea.trm
Class RunTimeCondition

java.lang.Object
  |
  +--mss.ea.trm.AbstractCondition
        |
        +--mss.ea.trm.RunTimeCondition
All Implemented Interfaces:
Condition

public class RunTimeCondition
extends AbstractCondition

Runtime condition. The condition is fulfilled in case of (currentTime - startTime > interval). The interval is specified with the constructor.

Since:
0.1
Version:
0.1 (06-29-2001)
Author:
Andreas Rummler

Field Summary
protected  long breakValue
          Time in milliseconds, that must be exceeded for termination.
 
Constructor Summary
RunTimeCondition(int seconds)
          Constructor with runtime in seconds.
RunTimeCondition(long milliSeconds)
          Constructor with runtime in milliseconds.
 
Method Summary
 boolean isTrue()
          Test of condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

breakValue

protected long breakValue
Time in milliseconds, that must be exceeded for termination.
Constructor Detail

RunTimeCondition

public RunTimeCondition(int seconds)
Constructor with runtime in seconds.
Parameters:
seconds - runtime in seconds

RunTimeCondition

public RunTimeCondition(long milliSeconds)
Constructor with runtime in milliseconds.
Parameters:
milliSeconds - runtime in milliseconds
Method Detail

isTrue

public boolean isTrue()
Test of condition.
Overrides:
isTrue in class AbstractCondition
Returns:
result of test of break condition

eaLib API Docs
Last Modified : January 7 2002

Copyright © 2000-2001 Technical University of Ilmenau, Department ESS