com.notuvy.util
Class PeriodicSelector

java.lang.Object
  extended by com.notuvy.util.PeriodicSelector
Direct Known Subclasses:
PeriodicSelector.Alternate, PeriodicSelector.EveryN, PeriodicSelector.Random

public abstract class PeriodicSelector
extends Object

A state holder that returns a boolean flag. The value of the flag is dependent on the defined period. User: Murali Date: Sep 5, 2008 Time: 2:40:19 PM


Nested Class Summary
static class PeriodicSelector.Alternate
           
static class PeriodicSelector.EveryN
           
static class PeriodicSelector.Random
           
 
Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Constructor Summary
protected PeriodicSelector(int pModulus)
           
 
Method Summary
 int getModulus()
           
 int getValue()
           
static void main(String[] args)
           
 boolean next()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

PeriodicSelector

protected PeriodicSelector(int pModulus)
Method Detail

getValue

public int getValue()

getModulus

public int getModulus()

next

public boolean next()

toString

public String toString()
Overrides:
toString in class Object

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.