eaLib API Docs
Last Modified : January 7 2002

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
 

Field Detail

current

protected java.util.GregorianCalendar current
Current time.

target

protected java.util.GregorianCalendar target
Target time.
Constructor Detail

AbsTimeCondition

public AbsTimeCondition(int year,
                        int month,
                        int day,
                        int hour,
                        int minute)
Constructor with target time.
Parameters:
year - year
month - month
date - day
hour - hour
minute - minute

AbsTimeCondition

public AbsTimeCondition(int year,
                        int month,
                        int day,
                        int hour,
                        int minute,
                        int second)
Constructor with target time.
Parameters:
year - year
month - month
date - day
hour - hour
minute - minute
second - second
Method Detail

isTrue

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

eaLib API Docs
Last Modified : January 7 2002

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