Class AbstractOTSModel

All Implemented Interfaces:
java.io.Serializable, DSOLModel<Time,​Duration,​SimTimeDoubleUnit,​OTSSimulatorInterface>, DSOLModel.TimeDoubleUnit<OTSSimulatorInterface>, EventProducerInterface, OTSModelInterface

public abstract class AbstractOTSModel
extends AbstractDSOLModel.TimeDoubleUnit<OTSSimulatorInterface>
implements OTSModelInterface
AbstractOTSModel is the base class for a model that runs on an OTSSimulator.

Copyright (c) 2003-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
Author:
Alexander Verbraeck
See Also:
Serialized Form
  • Constructor Details

    • AbstractOTSModel

      public AbstractOTSModel​(OTSSimulatorInterface simulator, java.lang.String shortName, java.lang.String description)
      Instantiate an abstract OTSModel.
      Parameters:
      simulator - OTSSimulatorInterface; the simulator to use
      shortName - String; a very short description of the simulation
      description - String; a description of the simulation (HTML formatted)
    • AbstractOTSModel

      public AbstractOTSModel​(OTSSimulatorInterface simulator)
      Instantiate an abstract OTSModel. The name and description will be set as the class name.
      Parameters:
      simulator - OTSSimulatorInterface; the simulator to use
  • Method Details

    • getShortName

      public final java.lang.String getShortName()
      Return a very short description of the simulation.
      Specified by:
      getShortName in interface OTSModelInterface
      Returns:
      String; short description of the simulation
    • setShortName

      public final void setShortName​(java.lang.String shortName)
      Parameters:
      shortName - String; set shortName
    • getDescription

      public final java.lang.String getDescription()
      Return a description of the simulation (HTML formatted).
      Specified by:
      getDescription in interface OTSModelInterface
      Returns:
      String; HTML text describing the simulation
    • setDescription

      public final void setDescription​(java.lang.String description)
      Parameters:
      description - String; set description