Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.terminate
Class AndCondition

java.lang.Object
  extended byorg.evolvica.core.terminate.AndCondition
All Implemented Interfaces:
ICondition, IMultiCondition

public class AndCondition
extends java.lang.Object
implements IMultiCondition

A condition which contains several other conditions and concatenates them with a logical AND. The condition returns false if no conditions are set.

Since:
RELEASE_NUMBER_NOT_DETERMINED
Version:
$Revision: 1.1 $ $Date: 2004/06/24 16:28:13 $
Author:
Andreas Rummler

Constructor Summary
AndCondition()
           
 
Method Summary
 ICondition[] getConditions()
          Returns the conditions contained in this multi condition.
 boolean isTrue(IIndividualSet iset)
          Checks if this condition is true for the given individual set.
 void setConditions(ICondition[] conditions)
          Sets the conditions of this multi condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndCondition

public AndCondition()
Method Detail

getConditions

public ICondition[] getConditions()
Description copied from interface: IMultiCondition
Returns the conditions contained in this multi condition.

Specified by:
getConditions in interface IMultiCondition
Returns:
array of conditions
See Also:
IMultiCondition.getConditions()

setConditions

public void setConditions(ICondition[] conditions)
Description copied from interface: IMultiCondition
Sets the conditions of this multi condition.

Specified by:
setConditions in interface IMultiCondition
Parameters:
conditions - array of conditions to set
See Also:
IMultiCondition.setConditions(org.evolvica.core.terminate.ICondition[])

isTrue

public boolean isTrue(IIndividualSet iset)
Description copied from interface: ICondition
Checks if this condition is true for the given individual set.

Specified by:
isTrue in interface ICondition
Parameters:
iset - individual set to check for the truth of the condition
Returns:
true if the condition is fulfilled, false otherwise
See Also:
ICondition.isTrue(org.evolvica.core.IIndividualSet)

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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