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.
  • Field Details

  • Method Details

    • addMeasureListener

      void addMeasureListener(int measureIndex, MeasureDefinition.MeasureListener listener)
      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 listen
      listener - listener to add or null to remove old one
    • getMeasureNumber

      int getMeasureNumber()
      Returns the total number of measures
      Returns:
      total number of measures
    • getName

      String getName(int measureIndex)
      Returns the name of a given measure
      Parameters:
      measureIndex - index of the measure
      Returns:
      name of the measure
    • getStationName

      String getStationName(int measureIndex)
      Returns the station name of a given measure
      Parameters:
      measureIndex - index of the measure
      Returns:
      station name
    • getClassName

      String getClassName(int measureIndex)
      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

      String getMeasureType(int measureIndex)
      Returns the type of a given measure
      Parameters:
      measureIndex - index of the measure
      Returns:
      measure type
    • getNodeType

      String getNodeType(int measureIndex)
      Returns the node type of a given measure
      Parameters:
      measureIndex - index of the measure
      Returns:
      node type
    • getLogFileName

      String getLogFileName(int measureIndex)
      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

      Vector<MeasureValue> getValues(int measureIndex)
      Returns the vector of Temporary values of a given measure. Each element of the vector is an instance of Value interface.
      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

      void setProgressListener(MeasureDefinition.ProgressListener listener)
      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

      void setMalformedReplayerFileListener(MeasureDefinition.MalformedReplayerFileListener listener)
    • detectedMalformedReplayerFile

      void detectedMalformedReplayerFile(String msg)
    • 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