Package xdevs.core.examples.devstone
Class DevStoneCoupledHO
- java.lang.Object
-
- xdevs.core.modeling.Component
-
- xdevs.core.modeling.Coupled
-
- xdevs.core.examples.devstone.DevStone
-
- xdevs.core.examples.devstone.DevStoneCoupledHO
-
public class DevStoneCoupledHO extends DevStone
Coupled model to study the performance HO DEVStone models
-
-
Constructor Summary
Constructors Constructor Description DevStoneCoupledHO(String name)
ConstructorDevStoneCoupledHO(String prefix, int width, int depth, double preparationTime, double intDelayTime, double extDelayTime)
ConstructorDevStoneCoupledHO(String prefix, int width, int depth, double preparationTime, org.apache.commons.math3.distribution.RealDistribution distribution)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
int
numAtomicsInTheory(int width, int depth)
Theoretical number of atomic models in the DEVStone modellong
numDeltExtsInTheory(int maxEvents, int width, int depth)
Theoretical number of external transitions performed in the simulation of the DEVStone modellong
numDeltIntsInTheory(int maxEvents, int width, int depth)
Theoretical number of internal transitions performed in the simulation of the DEVStone modellong
numEventsInTheory(int maxEvents, int width, int depth)
Theoretical number of events internally received in all the external transition functions.-
Methods inherited from class xdevs.core.examples.devstone.DevStone
numDeltExtsInPractice, numDeltIntsInPractice, numEventsInPractice
-
Methods inherited from class xdevs.core.modeling.Coupled
addComponent, addComponentsAndCouplings, addCoupling, addCoupling, addCoupling, addCoupling, addInPort, addOutPort, countAtomicComponents, exit, flatten, getComponentByName, getComponents, getEIC, getEOC, getIC, getParent, initialize, removeComponent, setParent, structuralTransition, toXml
-
Methods inherited from class xdevs.core.modeling.Component
getInPort, getInPorts, getName, getOutPort, getOutPorts, isInputEmpty, toString
-
-
-
-
Constructor Detail
-
DevStoneCoupledHO
public DevStoneCoupledHO(String name)
Constructor- Parameters:
name
- name of the model
-
DevStoneCoupledHO
public DevStoneCoupledHO(String prefix, int width, int depth, double preparationTime, double intDelayTime, double extDelayTime)
Constructor- Parameters:
prefix
- prefix of the model namewidth
- width of the modeldepth
- depth of the modelpreparationTime
- preparation time of the atomic modelsintDelayTime
- internal delay time of the atomic modelsextDelayTime
- external delay time of the atomic models
-
DevStoneCoupledHO
public DevStoneCoupledHO(String prefix, int width, int depth, double preparationTime, org.apache.commons.math3.distribution.RealDistribution distribution)
Constructor- Parameters:
prefix
- prefix of the model namewidth
- width of the modeldepth
- depth of the modelpreparationTime
- preparation time of the atomic modelsdistribution
- distribution of the atomic models, used to compute delay times
-
-
Method Detail
-
numDeltExtsInTheory
public long numDeltExtsInTheory(int maxEvents, int width, int depth)
Description copied from class:DevStone
Theoretical number of external transitions performed in the simulation of the DEVStone model- Specified by:
numDeltExtsInTheory
in classDevStone
- Parameters:
maxEvents
- maximum number of input eventswidth
- width of the DEVStone modeldepth
- depth of the DEVStone model- Returns:
- theoretical number of external transitions performed
-
numDeltIntsInTheory
public long numDeltIntsInTheory(int maxEvents, int width, int depth)
Description copied from class:DevStone
Theoretical number of internal transitions performed in the simulation of the DEVStone model- Specified by:
numDeltIntsInTheory
in classDevStone
- Parameters:
maxEvents
- maximum number of input eventswidth
- width of the DEVStone modeldepth
- depth of the DEVStone model- Returns:
- theoretical number of internal transitions performed
-
numEventsInTheory
public long numEventsInTheory(int maxEvents, int width, int depth)
Description copied from class:DevStone
Theoretical number of events internally received in all the external transition functions.- Specified by:
numEventsInTheory
in classDevStone
- Parameters:
maxEvents
- number of external input events to the DEVStone modelwidth
- width of the DEVStone modeldepth
- depth of the DEVStone model- Returns:
- theoretical number of events internally received in all the external transition functions
-
main
public static void main(String[] args)
-
numAtomicsInTheory
public int numAtomicsInTheory(int width, int depth)
Description copied from class:DevStone
Theoretical number of atomic models in the DEVStone model- Specified by:
numAtomicsInTheory
in classDevStone
- Parameters:
width
- width of the DEVStone modeldepth
- depth of the DEVStone model- Returns:
- theoretical number of atomic models
-
-