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 BatchStatistic
myBatchStats
The underlying BatchStatisticprotected boolean
myWarmUpEventCheckFlag
false 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 void
beforeExperiment(ModelElement m, java.lang.Object arg)
protected void
beforeReplication(ModelElement m, java.lang.Object arg)
BatchStatistic
getBatchStatistics()
The collected BatchStatisticvoid
setConfidenceLevel(double alpha)
Sets confidence level on underlying BatchStatisticjava.lang.String
toString()
protected void
update(ModelElement m, java.lang.Object arg)
protected void
warmUp(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:
beforeExperiment
in classModelElementObserver
-
beforeReplication
protected void beforeReplication(ModelElement m, java.lang.Object arg)
- Overrides:
beforeReplication
in classModelElementObserver
-
update
protected void update(ModelElement m, java.lang.Object arg)
- Overrides:
update
in classModelElementObserver
-
warmUp
protected void warmUp(ModelElement m, java.lang.Object arg)
- Overrides:
warmUp
in classModelElementObserver
-
toString
public java.lang.String toString()
- Overrides:
toString
in classModelElementObserver
-
-