Class AbstractEntity<T extends Number & Comparable<T>>
java.lang.Object
org.djutils.event.LocalEventProducer
nl.tudelft.simulation.dsol.formalisms.devs.esdevs.AbstractDevsModel<T>
nl.tudelft.simulation.dsol.formalisms.devs.esdevs.AbstractEntity<T>
- Type Parameters:
T
- the time type
- All Implemented Interfaces:
Serializable
,Remote
,org.djutils.event.EventProducer
AbstractEntity class. The AbstractEntity takes care of modeling components without behaviour but with state within coupled
models.
Copyright (c) 2009-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Mamadou Seck
, Alexander Verbraeck - See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.tudelft.simulation.dsol.formalisms.devs.esdevs.AbstractDevsModel
AbstractDevsModel.StateUpdate
-
Field Summary
Fields inherited from class nl.tudelft.simulation.dsol.formalisms.devs.esdevs.AbstractDevsModel
fullName, modelName, parentModel, simulator, STATE_UPDATE
Fields inherited from interface org.djutils.event.EventProducer
FIRST_POSITION, LAST_POSITION
-
Constructor Summary
ConstructorDescriptionAbstractEntity
(String modelName, DevsSimulatorInterface<T> simulator, CoupledModel<T> parentModel) Constructor for an abstract entity: we have to indicate the simulator for reporting purposes, and the parent model we are part of. -
Method Summary
Modifier and TypeMethodDescriptionvoid
printModel
(String header) Print the model, preceded by a user provided string.Methods inherited from class nl.tudelft.simulation.dsol.formalisms.devs.esdevs.AbstractDevsModel
fireUpdatedState, getFullName, getModelName, getParentModel, getSimulator, setSimulator, toString
Methods inherited from class org.djutils.event.LocalEventProducer
addListener, addListener, addListener, addListener, fireEvent, fireEvent, fireEvent, fireTimedEvent, fireTimedEvent, fireTimedEvent, fireUnverifiedEvent, fireUnverifiedEvent, fireUnverifiedTimedEvent, fireUnverifiedTimedEvent, getEventListenerMap, getEventTypesWithListeners, getListenerReferences, hasListeners, numberOfListeners, removeAllListeners, removeAllListeners, removeListener
-
Constructor Details
-
AbstractEntity
public AbstractEntity(String modelName, DevsSimulatorInterface<T> simulator, CoupledModel<T> parentModel) Constructor for an abstract entity: we have to indicate the simulator for reporting purposes, and the parent model we are part of. A parent model of null means that we are the top model.- Parameters:
modelName
- String; the name of this componentsimulator
- DevsSimulatorInterface<T>; the simulator for this model.parentModel
- CoupledModel<T>; the parent model we are part of (can be null for highest level model).
-
-
Method Details
-
printModel
Description copied from class:AbstractDevsModel
Print the model, preceded by a user provided string.- Specified by:
printModel
in classAbstractDevsModel<T extends Number & Comparable<T>>
- Parameters:
header
- String; the user provided string to print in front of the model (e.g. newlines, header).
-