Package xdevs.core.examples.devstone
Class DevStoneAtomic
- java.lang.Object
- 
- xdevs.core.modeling.Component
- 
- xdevs.core.modeling.Atomic
- 
- xdevs.core.examples.devstone.DevStoneAtomic
 
 
 
- 
 public class DevStoneAtomic extends Atomic DEVStone atomic model
- 
- 
Field SummaryFields Modifier and Type Field Description protected DhrystonedhrystoneDhrystone benchmark.protected doubleextDelayTimeExternal delay time.Port<Integer>iInInput portprotected doubleintDelayTimeInternal delay time.longnumDeltExtsNumber of external transitions performedlongnumDeltIntsNumber of internal transitions performedlongnumOfEventsNumber of events receivedPort<Integer>oOutOutput portprotected doublepreparationTimePreparation time.
 - 
Constructor SummaryConstructors Constructor Description DevStoneAtomic(String name, double preparationTime, double intDelayTime, double extDelayTime)ConstructorDevStoneAtomic(String name, double preparationTime, org.apache.commons.math3.distribution.RealDistribution distribution)ConstructorDevStoneAtomic(Element xmlAtomic)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeltext(double e)External transition method of the atomic model.voiddeltint()Internal transition method of the atomic model.voidexit()Exit function.doublegetExtDelayTime()Get the external delay timedoublegetIntDelayTime()Get the internal delay timedoublegetPreparationTime()Get the preparation timevoidinitialize()Initialize the component.voidlambda()Output function of the atomic model.StringtoXml()Method to get the XML representation of the model.- 
Methods inherited from class xdevs.core.modeling.Atomicactivate, deltcon, getPhase, getSigma, holdIn, passivate, passivate, passivateIn, phaseIs, resume, setPhase, setSigma, showState, ta
 - 
Methods inherited from class xdevs.core.modeling.ComponentaddInPort, addOutPort, getInPort, getInPorts, getName, getOutPort, getOutPorts, getParent, isInputEmpty, setParent, toString
 
- 
 
- 
- 
- 
Field Detail- 
dhrystoneprotected Dhrystone dhrystone Dhrystone benchmark. This benchmark is executed while the atomic model is in delay mode.
 - 
preparationTimeprotected double preparationTime Preparation time. Time to prepare the atomic model before the execution of the output and internal transition functions.
 - 
intDelayTimeprotected double intDelayTime Internal delay time. Time to execute the internal transition function.
 - 
extDelayTimeprotected double extDelayTime External delay time. Time to execute the external transition function.
 - 
numDeltIntspublic long numDeltInts Number of internal transitions performed
 - 
numDeltExtspublic long numDeltExts Number of external transitions performed
 - 
numOfEventspublic long numOfEvents Number of events received
 
- 
 - 
Constructor Detail- 
DevStoneAtomicpublic 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
 
 - 
DevStoneAtomicpublic 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
 
 - 
DevStoneAtomicpublic DevStoneAtomic(Element xmlAtomic) Constructor- Parameters:
- xmlAtomic- XML element with the atomic model
 
 
- 
 - 
Method Detail- 
initializepublic void initialize() Description copied from class:ComponentInitialize 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:
- initializein class- Component
 
 - 
exitpublic void exit() Description copied from class:ComponentExit function. The exit function is called when the simulation ends. The exit function is used to release resources used by the component.
 - 
deltintpublic void deltint() Description copied from class:AtomicInternal transition method of the atomic model. This method is called when the time until the next internal transition of the model is zero.
 - 
deltextpublic void deltext(double e) Description copied from class:AtomicExternal transition method of the atomic model. This method is called when the model receives an input from another model.
 - 
lambdapublic void lambda() Description copied from class:AtomicOutput function of the atomic model. This method is called when the model has an output to send to another model.
 - 
getPreparationTimepublic double getPreparationTime() Get the preparation time- Returns:
- preparation time
 
 - 
getIntDelayTimepublic double getIntDelayTime() Get the internal delay time- Returns:
- internal delay time
 
 - 
getExtDelayTimepublic double getExtDelayTime() Get the external delay time- Returns:
- external delay time
 
 
- 
 
-