Package jsl.observers.variable
Class BatchStatisticObserver
- java.lang.Object
-
- jsl.observers.ModelElementObserver
-
- jsl.observers.variable.BatchStatisticObserver
-
- All Implemented Interfaces:
ObserverIfc,GetNameIfc,IdentityIfc
- Direct Known Subclasses:
TWBatchingElement.TWBatchStatisticObserver
public class BatchStatisticObserver extends ModelElementObserver
A observer for batching of statistics on ResponseVariables The user can control the collection rule and the batching criteria of the underlying BatchStatistic
-
-
Field Summary
Fields Modifier and Type Field Description protected BatchStatisticmyBatchStatsThe underlying BatchStatisticprotected booleanmyWarmUpEventCheckFlagfalse means no warm up event in parent hierarchy-
Fields inherited from class jsl.observers.ModelElementObserver
myName
-
-
Constructor Summary
Constructors Constructor Description BatchStatisticObserver(int minNumBatches, int minBatchSize, int maxNBMultiple)BatchStatisticObserver(int minNumBatches, int minBatchSize, int maxNBMultiple, java.lang.String name)BatchStatisticObserver(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeforeExperiment(ModelElement m, java.lang.Object arg)protected voidbeforeReplication(ModelElement m, java.lang.Object arg)BatchStatisticgetBatchStatistics()The collected BatchStatisticvoidsetConfidenceLevel(double alpha)Sets confidence level on underlying BatchStatisticjava.lang.StringtoString()protected voidupdate(ModelElement m, java.lang.Object arg)protected voidwarmUp(ModelElement m, java.lang.Object arg)-
Methods inherited from class jsl.observers.ModelElementObserver
afterExperiment, afterReplication, getId, getModelElement, getName, initialize, montecarlo, removedFromModel, replicationEnded, setModelElement, setName, timedUpdate, update
-
-
-
-
Field Detail
-
myBatchStats
protected BatchStatistic myBatchStats
The underlying BatchStatistic
-
myWarmUpEventCheckFlag
protected boolean myWarmUpEventCheckFlag
false means no warm up event in parent hierarchy
-
-
Constructor Detail
-
BatchStatisticObserver
public BatchStatisticObserver(java.lang.String name)
-
BatchStatisticObserver
public BatchStatisticObserver(int minNumBatches, int minBatchSize, int maxNBMultiple)
-
BatchStatisticObserver
public BatchStatisticObserver(int minNumBatches, int minBatchSize, int maxNBMultiple, java.lang.String name)
-
-
Method Detail
-
setConfidenceLevel
public final void setConfidenceLevel(double alpha)
Sets confidence level on underlying BatchStatistic- Parameters:
alpha- the confidence level between 0 and 1
-
getBatchStatistics
public final BatchStatistic getBatchStatistics()
The collected BatchStatistic- Returns:
- the collected BatchStatistic
-
beforeExperiment
protected void beforeExperiment(ModelElement m, java.lang.Object arg)
- Overrides:
beforeExperimentin classModelElementObserver
-
beforeReplication
protected void beforeReplication(ModelElement m, java.lang.Object arg)
- Overrides:
beforeReplicationin classModelElementObserver
-
update
protected void update(ModelElement m, java.lang.Object arg)
- Overrides:
updatein classModelElementObserver
-
warmUp
protected void warmUp(ModelElement m, java.lang.Object arg)
- Overrides:
warmUpin classModelElementObserver
-
toString
public java.lang.String toString()
- Overrides:
toStringin classModelElementObserver
-
-