Class DevStoneAtomic


  • public class DevStoneAtomic
    extends Atomic
    DEVStone atomic model
    • Field Detail

      • dhrystone

        protected Dhrystone dhrystone
        Dhrystone benchmark. This benchmark is executed while the atomic model is in delay mode.
      • preparationTime

        protected double preparationTime
        Preparation time. Time to prepare the atomic model before the execution of the output and internal transition functions.
      • intDelayTime

        protected double intDelayTime
        Internal delay time. Time to execute the internal transition function.
      • extDelayTime

        protected double extDelayTime
        External delay time. Time to execute the external transition function.
      • numDeltInts

        public long numDeltInts
        Number of internal transitions performed
      • numDeltExts

        public long numDeltExts
        Number of external transitions performed
      • numOfEvents

        public long numOfEvents
        Number of events received
    • Constructor Detail

      • DevStoneAtomic

        public DevStoneAtomic​(String name,
                              double preparationTime,
                              double intDelayTime,
                              double extDelayTime)
        Constructor
        Parameters:
        name - name of the model
        preparationTime - preparation time
        intDelayTime - internal delay time
        extDelayTime - external delay time
      • DevStoneAtomic

        public DevStoneAtomic​(String name,
                              double preparationTime,
                              org.apache.commons.math3.distribution.RealDistribution distribution)
        Constructor
        Parameters:
        name - name of the model
        preparationTime - preparation time
        distribution - distribution to generate the internal and external delay times
      • DevStoneAtomic

        public DevStoneAtomic​(Element xmlAtomic)
        Constructor
        Parameters:
        xmlAtomic - XML element with the atomic model
    • Method Detail

      • initialize

        public void initialize()
        Description copied from class: Component
        Initialize the component. The initialize method is called when the simulation starts. The initialize method is used to initialize the component before the simulation starts.
        Specified by:
        initialize in class Component
      • exit

        public void exit()
        Description copied from class: Component
        Exit function. The exit function is called when the simulation ends. The exit function is used to release resources used by the component.
        Specified by:
        exit in class Component
      • deltint

        public void deltint()
        Description copied from class: Atomic
        Internal transition method of the atomic model. This method is called when the time until the next internal transition of the model is zero.
        Specified by:
        deltint in class Atomic
      • deltext

        public void deltext​(double e)
        Description copied from class: Atomic
        External transition method of the atomic model. This method is called when the model receives an input from another model.
        Specified by:
        deltext in class Atomic
        Parameters:
        e - The time elapsed since the last internal transition of the model.
      • lambda

        public void lambda()
        Description copied from class: Atomic
        Output function of the atomic model. This method is called when the model has an output to send to another model.
        Specified by:
        lambda in class Atomic
      • getPreparationTime

        public double getPreparationTime()
        Get the preparation time
        Returns:
        preparation time
      • getIntDelayTime

        public double getIntDelayTime()
        Get the internal delay time
        Returns:
        internal delay time
      • getExtDelayTime

        public double getExtDelayTime()
        Get the external delay time
        Returns:
        external delay time
      • toXml

        public String toXml()
        Description copied from class: Atomic
        Method to get the XML representation of the model.
        Overrides:
        toXml in class Atomic
        Returns:
        The XML representation of the model.