Package xdevs.core.examples.devstone
Class DevStone
- java.lang.Object
-
- xdevs.core.modeling.Component
-
- xdevs.core.modeling.Coupled
-
- xdevs.core.examples.devstone.DevStone
-
- Direct Known Subclasses:
DevStoneCoupledHI
,DevStoneCoupledHO
,DevStoneCoupledHOmem
,DevStoneCoupledHOmod
,DevStoneCoupledLI
public abstract class DevStone extends Coupled
Coupled model to study the performance using DEVStone.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract int
numAtomicsInTheory(int width, int depth)
Theoretical number of atomic models in the DEVStone modellong
numDeltExtsInPractice()
Number of external transitions performed in the current DEVStone modelabstract long
numDeltExtsInTheory(int maxEvents, int width, int depth)
Theoretical number of external transitions performed in the simulation of the DEVStone modellong
numDeltIntsInPractice()
Number of internal transitions performed in the current DEVStone modelabstract long
numDeltIntsInTheory(int maxEvents, int width, int depth)
Theoretical number of internal transitions performed in the simulation of the DEVStone modellong
numEventsInPractice()
Number of events internally received in all the external transition functions.abstract long
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.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
-
DevStone
public DevStone(String name)
Constructor- Parameters:
name
- name of the model
-
-
Method Detail
-
numAtomicsInTheory
public abstract int numAtomicsInTheory(int width, int depth)
Theoretical number of atomic models in the DEVStone model- Parameters:
width
- width of the DEVStone modeldepth
- depth of the DEVStone model- Returns:
- theoretical number of atomic models
-
numDeltExtsInTheory
public abstract long numDeltExtsInTheory(int maxEvents, int width, int depth)
Theoretical number of external transitions performed in the simulation of the DEVStone model- 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 abstract long numDeltIntsInTheory(int maxEvents, int width, int depth)
Theoretical number of internal transitions performed in the simulation of the DEVStone model- 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 abstract long numEventsInTheory(int maxEvents, int width, int depth)
Theoretical number of events internally received in all the external transition functions.- 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
-
numDeltExtsInPractice
public long numDeltExtsInPractice()
Number of external transitions performed in the current DEVStone model- Returns:
- number of external transitions
-
numDeltIntsInPractice
public long numDeltIntsInPractice()
Number of internal transitions performed in the current DEVStone model- Returns:
- number of internal transitions
-
numEventsInPractice
public long numEventsInPractice()
Number of events internally received in all the external transition functions.- Returns:
- number of events internally received
-
-