Class AbstractOTSModel

    • Constructor Detail

      • 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 Detail

      • 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