Package | Description |
---|---|
simulation.scheduler |
The default schedulers can be found here.
|
simulation.simulators |
All the machinery actually making the simulation possible is implemented here.
|
Modifier and Type | Field and Description |
---|---|
protected ArrayList<TreeMap<Double,Set<IAtomicSimulator>>> |
Scheduler.scheds
The array is to differentiate the models making an internal event with
output from the models making an internal event without output.
|
Modifier and Type | Method and Description |
---|---|
Set<IAtomicSimulator> |
IScheduler.selectp(Double t,
int value)
Select the set of simulators making transitions at the given event
time.
|
Set<IAtomicSimulator> |
Scheduler.selectp(Double t,
int value)
Select the next event set (at a given time, the minimum one in this
case, all events making an internal transition)
|
Modifier and Type | Method and Description |
---|---|
void |
IScheduler.addSimulator(Double tN,
IAtomicSimulator sim,
int value)
Schedules an event at a given time from a given simulator.
|
void |
Scheduler.addSimulator(Double tN,
IAtomicSimulator sim,
int value)
Add a simulator at a given time of next internal event
|
void |
IScheduler.removeSimulator(double oldtN,
IAtomicSimulator aThis)
Remove a particular simulator, at a given event time, if it is present.
|
void |
Scheduler.removeSimulator(double t,
IAtomicSimulator sim)
Remove a simulator from the tree of future events at the given key
time.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ICoordinator
DEVS coordinator API.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomicSimulator
Simulator made for models coupled inside a coupling model.
|
class |
Coordinator
A Coordinator is like a conductor in a DEVS simulation.
|
Modifier and Type | Field and Description |
---|---|
protected IAtomicSimulator |
AtomicSimulator._parent
Parent simulator if it exists, that is to say if the current simulator
isn't the top level simulator.
|
protected IAtomicSimulator |
AtomicSimulator._rootParent
Top level parent simulator if it exists, that is to say if the current
simulator isn't the top level simulator.
|
Modifier and Type | Field and Description |
---|---|
protected static Factory<IAtomicSimulator> |
Coordinator._coordinatorFactory
The factory for coordinators associated with this instance.
|
protected static Set<IAtomicSimulator> |
AtomicSimulator._IMM_COMPUTE_O
The set of models emitting an output at the time of next event.
|
protected static Set<IAtomicSimulator> |
AtomicSimulator._IMM_DELTFUNC
The set of models making a transition at the time of next event.
|
protected HashMap<INamed,IAtomicSimulator> |
AtomicSimulator._modelsToSimulate
A collection of simulators associated with their model's name.
|
protected static Factory<IAtomicSimulator> |
Coordinator._simulatorFactory
The factory for simulators associated with this instance.
|
protected HashSet<IAtomicSimulator> |
AtomicSimulator._simulators
The set of subcomponents of this simulator.
|
protected Map<INamed,IAtomicSimulator> |
Coordinator.internalModelTosim
The internal model, that is to say the
|
Modifier and Type | Method and Description |
---|---|
IAtomicSimulator |
AtomicSimulator.AtomicSimulatorFactory.create(Object... args)
The factory method of this class.
|
IAtomicSimulator |
IAtomicSimulator.parent()
Getter on the parent simulator in case of coupled model.
|
IAtomicSimulator |
AtomicSimulator.parent()
Getter on the parent simulator in case of coupled model.
|
IAtomicSimulator |
IAtomicSimulator.rootParent()
Getter on the top level parent simulator.
|
IAtomicSimulator |
AtomicSimulator.rootParent()
Getter on the top level parent simulator.
|
Modifier and Type | Method and Description |
---|---|
Set<IAtomicSimulator> |
Coordinator.getAllSimulators()
Returns all the simulators in use under this coordinator.
|
Set<IAtomicSimulator> |
ICoordinator.getAllSimulators()
A getter to the simulators (no coordinators) under this coordinator.
|
Map<INamed,IAtomicSimulator> |
Coordinator.internalModelToSim()
A getter to a dictionary to link the atomic models under the coupled
model associated with this coordinator, and their simulator.
|
Map<INamed,IAtomicSimulator> |
ICoordinator.internalModelToSim()
A getter to a dictionary to link the atomic models under the coupled
model associated with this coordinator, and their simulator.
|
Set<IAtomicSimulator> |
Coordinator.simulators()
The set of all the simulators in use in this simulation and under the
level of this coordinator.
|
Set<IAtomicSimulator> |
ICoordinator.simulators()
The set of all the simulators in use in this simulation and under the
level of this coordinator.
|
Modifier and Type | Method and Description |
---|---|
void |
IAtomicSimulator.addImmDelt(IAtomicSimulator atomicSimulator)
Add a simulator to those who may execute a transition function.
|
void |
AtomicSimulator.addImmDelt(IAtomicSimulator atomicSimulator)
Add a simulator to those who may execute a transition function.
|
void |
IAtomicSimulator.setParent(IAtomicSimulator parent)
Setter on the parent simulator.
|
void |
AtomicSimulator.setParent(IAtomicSimulator p)
Setter on the parent simulator.
|
void |
IAtomicSimulator.setRootParent(IAtomicSimulator rootParent)
Setter on the top level parent simulator.
|
void |
AtomicSimulator.setRootParent(IAtomicSimulator rp)
Setter on the top level parent simulator.
|
protected void |
Coordinator.simulatorCreated(IAtomicSimulator s,
IDevs d)
When a simulator or a coordinator has been created by this coordinator,
adds it to the memory linked with their assigned model.
|
Modifier and Type | Method and Description |
---|---|
void |
IAtomicSimulator.setModelsToSimulate(HashMap<INamed,IAtomicSimulator> modelsToSimulate)
Setter on list of models to simulate into this.
|
void |
AtomicSimulator.setModelsToSimulate(HashMap<INamed,IAtomicSimulator> modelsToSimulate)
Setter on list of models to simulate into this.
|
protected void |
Coordinator.tellAllSimsSetModToSim(HashMap<INamed,IAtomicSimulator> inFunc)
Assigns models to simulators
|
Constructor and Description |
---|
AtomicSimulator(IDevs model,
IAtomicSimulator parent)
Specific constructor that sets the model to simulate and the parent
simulator.
|
AtomicSimulator(IDevs model,
IAtomicSimulator parent,
IScheduler scheduler)
Specific constructor that sets the model to simulate, the parent
simulator and the simulation scheduler.
|
Copyright © 2017–2019 UniversitĂ© CĂ´te d'Azur, CNRS, I3S. All rights reserved.