Class SimulatorProfile


  • public class SimulatorProfile
    extends Simulator
    Profiling simulation class. It implements a profiling simulation class for DEVS models.
    • Field Detail

      • numCallsToInitialize

        protected long numCallsToInitialize
      • timeUsedByInitialize

        protected long timeUsedByInitialize
      • numCallsToExit

        protected long numCallsToExit
      • timeUsedByExit

        protected long timeUsedByExit
      • numCallsToTa

        protected long numCallsToTa
      • timeUsedByTa

        protected long timeUsedByTa
      • numCallsToDeltFcn

        protected long numCallsToDeltFcn
      • timeUsedByDeltFcn

        protected long timeUsedByDeltFcn
      • numCallsToLambda

        protected long numCallsToLambda
      • timeUsedByLambda

        protected long timeUsedByLambda
      • numCallsToClear

        protected long numCallsToClear
      • timeUsedByClear

        protected long timeUsedByClear
      • numCallsToGetTN

        protected long numCallsToGetTN
      • timeUsedByGetTN

        protected long timeUsedByGetTN
      • numCallsToGetTL

        protected long numCallsToGetTL
      • timeUsedByGetTL

        protected long timeUsedByGetTL
      • numCallsToSetTN

        protected long numCallsToSetTN
      • timeUsedBySetTN

        protected long timeUsedBySetTN
      • numCallsToSetTL

        protected long numCallsToSetTL
      • timeUsedBySetTL

        protected long timeUsedBySetTL
      • numCallsToGetClock

        protected long numCallsToGetClock
      • timeUsedByGetClock

        protected long timeUsedByGetClock
    • Method Detail

      • initialize

        public void initialize()
        Description copied from class: AbstractSimulator
        Initializes the simulator and the associated model. This is not part of the DEVS formalism, but it is a necessary step to prepare the simulator for the simulation.
        Overrides:
        initialize in class Simulator
      • exit

        public void exit()
        Description copied from class: AbstractSimulator
        This is a special function, out of the DEVS formalism, that allows to realize some actions when the simulation ends.
        Overrides:
        exit in class Simulator
      • ta

        public double ta()
        Description copied from class: AbstractSimulator
        Executes the time advance mechanism of the DEVS simulation.
        Overrides:
        ta in class Simulator
        Returns:
        the new DEVS sigma.
      • deltfcn

        public void deltfcn()
        Description copied from class: AbstractSimulator
        Executes one of the transition functions of the DEVS simulation, depending on the current state of the model and whether there are new events or not.
        Overrides:
        deltfcn in class Simulator
      • lambda

        public void lambda()
        Description copied from class: AbstractSimulator
        Executes the output function of the DEVS simulation.
        Overrides:
        lambda in class Simulator
      • clear

        public void clear()
        Description copied from class: AbstractSimulator
        Empties the event list at the ports of the associated model.
        Overrides:
        clear in class Simulator
      • setTL

        public void setTL​(double tL)
        Description copied from class: AbstractSimulator
        Sets the time of the last event.
        Overrides:
        setTL in class AbstractSimulator
        Parameters:
        tL - the time of the last event.
      • getTN

        public double getTN()
        Description copied from class: AbstractSimulator
        Gets the time of the next event.
        Overrides:
        getTN in class AbstractSimulator
        Returns:
        the time of the next event.
      • setTN

        public void setTN​(double tN)
        Description copied from class: AbstractSimulator
        Sets the time of the next event.
        Overrides:
        setTN in class AbstractSimulator
        Parameters:
        tN - the time of the next event.