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

public class AbstractEntity<T extends Number & Comparable<T>> extends AbstractDevsModel<T>
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:
  • 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 component
      simulator - 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

      public void printModel(String header)
      Description copied from class: AbstractDevsModel
      Print the model, preceded by a user provided string.
      Specified by:
      printModel in class AbstractDevsModel<T extends Number & Comparable<T>>
      Parameters:
      header - String; the user provided string to print in front of the model (e.g. newlines, header).