Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.terminate
Class AbsoluteTimeCondition

java.lang.Object
  extended byorg.evolvica.core.terminate.AbsoluteTimeCondition
All Implemented Interfaces:
ICondition

public class AbsoluteTimeCondition
extends java.lang.Object
implements ICondition

Termination at specified time. The condition is fulfilled in case of (currentTime >= targetTime). The target time can be specified in the constructor.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:58:18 $
Author:
Andreas Rummler

Field Summary
protected  java.util.GregorianCalendar current
          Current time.
protected  int day
          Day.
protected  int hour
          Hour.
protected  int minute
          Minute.
protected  int month
          Month.
protected  java.util.GregorianCalendar target
          Target time.
protected  int year
          Year.
 
Constructor Summary
AbsoluteTimeCondition()
          Constructor.
AbsoluteTimeCondition(int year, int month, int day, int hour, int minute)
          Constructor with target time.
 
Method Summary
 int getDay()
          Returns the day
 int getHour()
          Returns the hour.
 int getMinute()
          Returns the minute.
 int getMonth()
          Returns the month.
 int getYear()
          Returns the year.
 boolean isTrue(IIndividualSet set)
          Test of condition.
 void setDay(int value)
          Sets the day.
 void setHour(int value)
          Sets the hour.
 void setMinute(int value)
          Sets the minute.
 void setMonth(int value)
          Sets the month.
 void setYear(int value)
          Sets the year.
 
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.


year

protected int year
Year.


month

protected int month
Month.


day

protected int day
Day.


hour

protected int hour
Hour.


minute

protected int minute
Minute.

Constructor Detail

AbsoluteTimeCondition

public AbsoluteTimeCondition()
Constructor.


AbsoluteTimeCondition

public AbsoluteTimeCondition(int year,
                             int month,
                             int day,
                             int hour,
                             int minute)
Constructor with target time.

Parameters:
year - year
month - month
day - day
hour - hour
minute - minute
Method Detail

isTrue

public boolean isTrue(IIndividualSet set)
Test of condition.

Specified by:
isTrue in interface ICondition
Parameters:
set - individual set
Returns:
result of condition test

getDay

public int getDay()
Returns the day

Returns:
day

getHour

public int getHour()
Returns the hour.

Returns:
hour

getMinute

public int getMinute()
Returns the minute.

Returns:
minute

getMonth

public int getMonth()
Returns the month.

Returns:
month

getYear

public int getYear()
Returns the year.

Returns:
year

setDay

public void setDay(int value)
            throws java.beans.PropertyVetoException
Sets the day.

Parameters:
value - day
Throws:
java.beans.PropertyVetoException - thrown in case the property cannot be set

setHour

public void setHour(int value)
             throws java.beans.PropertyVetoException
Sets the hour.

Parameters:
value - hour
Throws:
java.beans.PropertyVetoException - thrown in case the property cannot be set

setMinute

public void setMinute(int value)
               throws java.beans.PropertyVetoException
Sets the minute.

Parameters:
value - minute
Throws:
java.beans.PropertyVetoException - thrown in case the property cannot be set

setMonth

public void setMonth(int value)
              throws java.beans.PropertyVetoException
Sets the month.

Parameters:
value - month
Throws:
java.beans.PropertyVetoException - thrown in case the property cannot be set

setYear

public void setYear(int value)
             throws java.beans.PropertyVetoException
Sets the year.

Parameters:
value - year
Throws:
java.beans.PropertyVetoException - thrown in case the property cannot be set

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems