Interface MeasureDefinition
- All Known Implementing Classes:
PAResultsModel, ResultsModel, StoredResultsModel
public interface MeasureDefinition
Title: Measure Definition Interface
Description: This interface is implemented by each measure definition data structure. It is provided to allow ResultsWindow not to be directly linked to underlying data structure, allowing two or more different kind of result data structure. Actually it can be useful to have one measure data structure that reads data from the engine and one that loads a saved file.
- Author:
- Bertoli Marco Date: 23-set-2005 Time: 23.14.55 Modified by Ashanka (May 2010): Patch: Multi-Sink Perf. Index Description: Added new Performance index for capturing 1. global response time (ResponseTime per Sink) 2. global throughput (Throughput per Sink) each sink per class.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface used to specify a listener on detected malformed replayer file.static interfaceInterface used to specify a listener on a measure.static interfaceInterface used to specify a listener on progress. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intConstants used for the getMeasureState methodstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMeasureListener(int measureIndex, MeasureDefinition.MeasureListener listener) Adds a MeasureListener to listen to measure change events for given measure.voiddoublegetAlpha(int measureIndex) Returns the alpha of a given measureintgetAnalyzedSamples(int measureIndex) Returns the number of analyzed samples for a given measureint[]Returns an array with the measureIndex of every arrival rate measureint[]Returns an array with the measureIndex of every balking rate measuregetClassName(int measureIndex) Returns the class name of a given measureintgetDiscardedSamples(int measureIndex) Returns the number of discarded samples for a given measureint[]Returns an array with the measureIndex of every drop rate measureint[]Returns an array with the measureIndex of every earliness measureint[]Returns an array with the measureIndex of every effective utilization measurelongReturns simulation elapsed time in millisecondsint[]Returns an array with the measureIndex of every FCR memory occupation measureint[]Returns an array with the measureIndex of every FCR total weight measureint[]Returns an array with the measureIndex of every firing throughput measureint[]Returns an array with the measureIndex of every FJ customer number measureint[]Returns an array with the measureIndex of every FJ response time measureint[]Returns an array with the measureIndex of every lateness measureReturns the CSV delimiter used in log filesReturns the decimal separator used in log filesgetLogFileName(int measureIndex) Returns the log file name where a verbose measure was storedintReturns the total number of measuresintgetMeasureState(int measureIndex) Returns the state of a given measuregetMeasureType(int measureIndex) Returns the type of a given measuregetName(int measureIndex) Returns the name of a given measuregetNodeType(int measureIndex) Returns the node type of a given measureint[]Returns an array with the measureIndex of every firing throughput measuredoubleReturns simulation polling interval in secondsdoublegetPrecision(int measureIndex) Returns the precision of a given measuredoubleReturns current simulation progressint[]Returns an array with the measureIndex of every queue length measureint[]Returns an array with the measureIndex of every queue time measureint[]Returns an array with the measureIndex of every reneging rate measureint[]Returns an array with the measureIndex of every residence time measureint[]Returns an array with the measureIndex of every response time measureint[]Returns an array with the measureIndex of every response time per sink measureint[]Returns an array with the measureIndex of every retrial attempts rate measureint[]Returns an array with the measureIndex of every retrial orbit size measureint[]Returns an array with the measureIndex of every retrial orbit time measuregetStationName(int measureIndex) Returns the station name of a given measureint[]Returns an array with the measureIndex of every system balking rate measureint[]Returns an array with the measureIndex of every system customer number measureint[]Returns an array with the measureIndex of every system drop rate measureint[]Returns an array with the measureIndex of every system earliness measureint[]Returns an array with the measureIndex of every system lateness measureint[]Returns an array with the measureIndex of every system power measureint[]Returns an array with the measureIndex of every system reneging rate measureint[]Returns an array with the measureIndex of every system response time measureint[]Returns an array with the measureIndex of every system retrial attempts rate measureint[]Returns an array with the measureIndex of every system tardiness measureint[]Returns an array with the measureIndex of every system throughput measureint[]Returns an array with the measureIndex of every tardiness measureint[]Returns an array with the measureIndex of every throughput measureint[]Returns an array with the measureIndex of every throughput per sink measureint[]Returns an array with the measureIndex of every utilization measuregetValues(int measureIndex) Returns the vector of Temporary values of a given measure.booleanReturns if simulation has finished, so results are fixedvoidvoidSets a ProgressListener to listen to progress change events.
-
Field Details
-
MEASURE_IN_PROGRESS
static final int MEASURE_IN_PROGRESSConstants used for the getMeasureState method- See Also:
-
MEASURE_SUCCESS
static final int MEASURE_SUCCESS- See Also:
-
MEASURE_FAILED
static final int MEASURE_FAILED- See Also:
-
MEASURE_NO_SAMPLES
static final int MEASURE_NO_SAMPLES- See Also:
-
-
Method Details
-
addMeasureListener
Adds a MeasureListener to listen to measure change events for given measure. Each measure can have ONLY one MeasureListener to avoid unnecessary computational efforts to manage a pool of listeners.- Parameters:
measureIndex- index of the measure that this listener should listenlistener- listener to add or null to remove old one
-
getMeasureNumber
int getMeasureNumber()Returns the total number of measures- Returns:
- total number of measures
-
getName
Returns the name of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- name of the measure
-
getStationName
Returns the station name of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- station name
-
getClassName
Returns the class name of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- class name
-
getAlpha
double getAlpha(int measureIndex) Returns the alpha of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- alpha
-
getPrecision
double getPrecision(int measureIndex) Returns the precision of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- precision
-
getAnalyzedSamples
int getAnalyzedSamples(int measureIndex) Returns the number of analyzed samples for a given measure- Parameters:
measureIndex- index of the measure- Returns:
- number of analyzed samples
-
getDiscardedSamples
int getDiscardedSamples(int measureIndex) Returns the number of discarded samples for a given measure- Parameters:
measureIndex- the measure index- Returns:
- number of discarded samples
-
getMeasureState
int getMeasureState(int measureIndex) Returns the state of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- measure state
-
getMeasureType
Returns the type of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- measure type
-
getNodeType
Returns the node type of a given measure- Parameters:
measureIndex- index of the measure- Returns:
- node type
-
getLogFileName
Returns the log file name where a verbose measure was stored- Parameters:
measureIndex- corresponding to a measure- Returns:
- full path of the log file including the measure
-
getValues
Returns the vector of Temporary values of a given measure. Each element of the vector is an instance ofValueinterface.- Parameters:
measureIndex- index of the measure- Returns:
- vector of temporary values until now
-
getQueueLengthMeasures
int[] getQueueLengthMeasures()Returns an array with the measureIndex of every queue length measure- Returns:
- an array with measures' index
-
getQueueTimeMeasures
int[] getQueueTimeMeasures()Returns an array with the measureIndex of every queue time measure- Returns:
- an array with measures' index
-
getResponseTimeMeasures
int[] getResponseTimeMeasures()Returns an array with the measureIndex of every response time measure- Returns:
- an array with measures' index
-
getResidenceTimeMeasures
int[] getResidenceTimeMeasures()Returns an array with the measureIndex of every residence time measure- Returns:
- an array with measures' index
-
getArrivalRateMeasures
int[] getArrivalRateMeasures()Returns an array with the measureIndex of every arrival rate measure- Returns:
- an array with measures' index
-
getThroughputMeasures
int[] getThroughputMeasures()Returns an array with the measureIndex of every throughput measure- Returns:
- an array with measures' index
-
getUtilizationMeasures
int[] getUtilizationMeasures()Returns an array with the measureIndex of every utilization measure- Returns:
- an array with measures' index
-
getTardinessMeasures
int[] getTardinessMeasures()Returns an array with the measureIndex of every tardiness measure- Returns:
- an array with measures' index
-
getEarlinessMeasures
int[] getEarlinessMeasures()Returns an array with the measureIndex of every earliness measure- Returns:
- an array with measures' index
-
getLatenessMeasures
int[] getLatenessMeasures()Returns an array with the measureIndex of every lateness measure- Returns:
- an array with measures' index
-
getEffectiveUtilizationMeasures
int[] getEffectiveUtilizationMeasures()Returns an array with the measureIndex of every effective utilization measure- Returns:
- an array with measures' index
-
getDropRateMeasures
int[] getDropRateMeasures()Returns an array with the measureIndex of every drop rate measure- Returns:
- an array with measures' index
-
getBalkingRateMeasures
int[] getBalkingRateMeasures()Returns an array with the measureIndex of every balking rate measure- Returns:
- an array with measures' index
-
getRenegingRateMeasures
int[] getRenegingRateMeasures()Returns an array with the measureIndex of every reneging rate measure- Returns:
- an array with measures' index
-
getRetrialAttemptsRateMeasures
int[] getRetrialAttemptsRateMeasures()Returns an array with the measureIndex of every retrial attempts rate measure- Returns:
- an array with measures' index
-
getRetrialOrbitSizeMeasures
int[] getRetrialOrbitSizeMeasures()Returns an array with the measureIndex of every retrial orbit size measure- Returns:
- an array with measures' index
-
getRetrialOrbitTimeMeasures
int[] getRetrialOrbitTimeMeasures()Returns an array with the measureIndex of every retrial orbit time measure- Returns:
- an array with measures' index
-
getSystemCustomerNumberMeasures
int[] getSystemCustomerNumberMeasures()Returns an array with the measureIndex of every system customer number measure- Returns:
- an array with measures' index
-
getSystemResponseTimeMeasures
int[] getSystemResponseTimeMeasures()Returns an array with the measureIndex of every system response time measure- Returns:
- an array with measures' index
-
getSystemThroughputMeasures
int[] getSystemThroughputMeasures()Returns an array with the measureIndex of every system throughput measure- Returns:
- an array with measures' index
-
getSystemDropRateMeasures
int[] getSystemDropRateMeasures()Returns an array with the measureIndex of every system drop rate measure- Returns:
- an array with measures' index
-
getSystemBalkingRateMeasures
int[] getSystemBalkingRateMeasures()Returns an array with the measureIndex of every system balking rate measure- Returns:
- an array with measures' index
-
getSystemRenegingRateMeasures
int[] getSystemRenegingRateMeasures()Returns an array with the measureIndex of every system reneging rate measure- Returns:
- an array with measures' index
-
getSystemRetrialAttemptsRateMeasures
int[] getSystemRetrialAttemptsRateMeasures()Returns an array with the measureIndex of every system retrial attempts rate measure- Returns:
- an array with measures' index
-
getSystemPowerMeasures
int[] getSystemPowerMeasures()Returns an array with the measureIndex of every system power measure- Returns:
- an array with measures' index
-
getSystemTardinessMeasures
int[] getSystemTardinessMeasures()Returns an array with the measureIndex of every system tardiness measure- Returns:
- an array with measures' index
-
getSystemEarlinessMeasures
int[] getSystemEarlinessMeasures()Returns an array with the measureIndex of every system earliness measure- Returns:
- an array with measures' index
-
getSystemLatenessMeasures
int[] getSystemLatenessMeasures()Returns an array with the measureIndex of every system lateness measure- Returns:
- an array with measures' index
-
getResponsetimePerSinkMeasures
int[] getResponsetimePerSinkMeasures()Returns an array with the measureIndex of every response time per sink measure- Returns:
- an array with measures' index
-
getThroughputPerSinkMeasures
int[] getThroughputPerSinkMeasures()Returns an array with the measureIndex of every throughput per sink measure- Returns:
- an array with measures' index
-
getFCRTotalWeightMeasures
int[] getFCRTotalWeightMeasures()Returns an array with the measureIndex of every FCR total weight measure- Returns:
- an array with measures' index
-
getFCRMemoryOccupationMeasures
int[] getFCRMemoryOccupationMeasures()Returns an array with the measureIndex of every FCR memory occupation measure- Returns:
- an array with measures' index
-
getFJCustomerNumberMeasures
int[] getFJCustomerNumberMeasures()Returns an array with the measureIndex of every FJ customer number measure- Returns:
- an array with measures' index
-
getFJResponseTimeMeasures
int[] getFJResponseTimeMeasures()Returns an array with the measureIndex of every FJ response time measure- Returns:
- an array with measures' index
-
getFiringThroughputMeasures
int[] getFiringThroughputMeasures()Returns an array with the measureIndex of every firing throughput measure- Returns:
- an array with measures' index
-
getNumberOfActiveServersMeasures
int[] getNumberOfActiveServersMeasures()Returns an array with the measureIndex of every firing throughput measure- Returns:
- an array with measures' index
-
setProgressListener
Sets a ProgressListener to listen to progress change events. This is unique.- Parameters:
listener- listener to be set or null to reset previous one
-
setMalformedReplayerFileListener
-
detectedMalformedReplayerFile
-
isSimulationFinished
boolean isSimulationFinished()Returns if simulation has finished, so results are fixed- Returns:
- true iff simulation has finished
-
getPollingInterval
double getPollingInterval()Returns simulation polling interval in seconds- Returns:
- simulation polling interval in seconds
-
getProgress
double getProgress()Returns current simulation progress- Returns:
- current simulation progress
-
getElapsedTime
long getElapsedTime()Returns simulation elapsed time in milliseconds- Returns:
- simulation elapsed time in milliseconds
-
getLogDecimalSeparator
String getLogDecimalSeparator()Returns the decimal separator used in log files- Returns:
- the decimal separator used in log files
-
getLogCsvDelimiter
String getLogCsvDelimiter()Returns the CSV delimiter used in log files- Returns:
- the CSV delimiter used in log files
-