org.concord.molecular.engine
Class ConditionValue

java.lang.Object
  |
  +--org.concord.molecular.engine.ConditionValue
Direct Known Subclasses:
AggregateValue, AtomicValue

public abstract class ConditionValue
extends java.lang.Object


Field Summary
protected  int[] allIndices
           
protected  ConditionEvent conditionEvent
           
static int COUNT
           
protected  int[] indices
           
protected  java.util.Vector listeners
           
protected  double max
           
static int MEAN
           
protected  double min
           
protected  boolean negate
           
static int NO_INTERVAL
           
protected  boolean notifying
           
protected  boolean running
           
protected  int runningCount
           
protected  double runningMean
           
static int SIGMA
           
static int SINGLE
           
protected  int[] singleIndex
           
protected  int timedAverageInterval
           
static int TOTAL
           
protected  int type
           
protected  java.util.Vector valueList
           
protected  double[] values
           
 
Constructor Summary
ConditionValue()
           
 
Method Summary
 void addConditionListener(ConditionListener listener)
           
protected  boolean check(double value)
           
protected  double count(double[] values)
           
abstract  int getNumberOfValues()
           
 double getValue()
           
protected  double getValue(double[] values)
           
abstract  double getValue(int index)
           
 boolean isTimedAverage()
           
protected  double mean(double[] values)
           
protected  void notifyConditionListeners(ConditionEvent event)
           
 void removeConditionListener(ConditionListener listener)
           
 void resetRange()
           
 void resetTimedAverage()
           
 void setIndex(int index)
           
 void setIndices(int[] indices)
           
 void setIndices(java.util.Vector list)
           
 void setMax(double upper)
           
 void setMin(double lower)
           
 void setNegate(boolean negated)
           
 void setRange(double lower, double upper)
           
 void setTimedAverage(boolean timedAverage)
           
 void setTimedAverageInterval(int interval)
           
 void setType(int type)
           
protected  double sigma(double[] values)
           
protected  double single(double[] values)
           
protected  double total(double[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_INTERVAL

public static final int NO_INTERVAL

SINGLE

public static final int SINGLE

MEAN

public static final int MEAN

TOTAL

public static final int TOTAL

SIGMA

public static final int SIGMA

COUNT

public static final int COUNT

notifying

protected boolean notifying

indices

protected int[] indices

allIndices

protected int[] allIndices

runningCount

protected int runningCount

runningMean

protected double runningMean

running

protected boolean running

min

protected double min

max

protected double max

values

protected double[] values

negate

protected boolean negate

type

protected int type

timedAverageInterval

protected int timedAverageInterval

singleIndex

protected int[] singleIndex

listeners

protected java.util.Vector listeners

valueList

protected java.util.Vector valueList

conditionEvent

protected ConditionEvent conditionEvent
Constructor Detail

ConditionValue

public ConditionValue()
Method Detail

single

protected double single(double[] values)

total

protected double total(double[] values)

count

protected double count(double[] values)

mean

protected double mean(double[] values)

sigma

protected double sigma(double[] values)

getValue

public double getValue()

getValue

public abstract double getValue(int index)

getNumberOfValues

public abstract int getNumberOfValues()

getValue

protected double getValue(double[] values)

check

protected boolean check(double value)

setIndex

public void setIndex(int index)

setMax

public void setMax(double upper)

setMin

public void setMin(double lower)

setNegate

public void setNegate(boolean negated)

setRange

public void setRange(double lower,
                     double upper)

resetRange

public void resetRange()

setType

public void setType(int type)

setIndices

public void setIndices(int[] indices)

setIndices

public void setIndices(java.util.Vector list)

isTimedAverage

public boolean isTimedAverage()

resetTimedAverage

public void resetTimedAverage()

setTimedAverageInterval

public void setTimedAverageInterval(int interval)

setTimedAverage

public void setTimedAverage(boolean timedAverage)

addConditionListener

public void addConditionListener(ConditionListener listener)

removeConditionListener

public void removeConditionListener(ConditionListener listener)

notifyConditionListeners

protected void notifyConditionListeners(ConditionEvent event)