mss.ea.trm
Class AbsTimeCondition
java.lang.Object
|
+--mss.ea.trm.AbstractCondition
|
+--mss.ea.trm.AbsTimeCondition
- All Implemented Interfaces:
- Condition
- public class AbsTimeCondition
- extends AbstractCondition
Termination at specified time.
The condition is fulfilled in case of (currentTime >= targetTime). The target time is
specified in the constructor.
- Since:
- 0.1
- Version:
- 0.1 (06-29-2001)
- Author:
- Andreas Rummler
Field Summary |
protected java.util.GregorianCalendar |
current
Current time. |
protected java.util.GregorianCalendar |
target
Target time. |
Constructor Summary |
AbsTimeCondition(int year,
int month,
int day,
int hour,
int minute)
Constructor with target time. |
AbsTimeCondition(int year,
int month,
int day,
int hour,
int minute,
int second)
Constructor with target time. |
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 |
current
protected java.util.GregorianCalendar current
- Current time.
target
protected java.util.GregorianCalendar target
- Target time.
AbsTimeCondition
public AbsTimeCondition(int year,
int month,
int day,
int hour,
int minute)
- Constructor with target time.
- Parameters:
year
- yearmonth
- monthdate
- dayhour
- hourminute
- minute
AbsTimeCondition
public AbsTimeCondition(int year,
int month,
int day,
int hour,
int minute,
int second)
- Constructor with target time.
- Parameters:
year
- yearmonth
- monthdate
- dayhour
- hourminute
- minutesecond
- second
isTrue
public boolean isTrue()
- Test of condition.
- Overrides:
isTrue
in class AbstractCondition
- Returns:
- result of condition test
Copyright © 2000-2001 Technical University of Ilmenau, Department ESS