eaLib API Docs
Last Modified : January 7 2002

mss.ea.trm
Class ModuloCondition

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

public class ModuloCondition
extends AbstractCondition

Modulo Condition. This condition is fullfilled if a given counter % a given value equals 0.

Since:
0.2.4
Version:
$Revision: 1.2 $ $Date: 2001/12/29 10:00:04 $
Author:
Andreas Rummler

Field Summary
protected  Counter counter
          Counter used for condition testing.
protected  long moduloValue
          Modulo value.
 
Constructor Summary
ModuloCondition(Counter counter, long value)
          Constructor.
 
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

moduloValue

protected long moduloValue
Modulo value.

counter

protected Counter counter
Counter used for condition testing.
Constructor Detail

ModuloCondition

public ModuloCondition(Counter counter,
                       long value)
Constructor.
Parameters:
counter - counter
value - modulo value
Method Detail

isTrue

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

eaLib API Docs
Last Modified : January 7 2002

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