Class AbstractOTSModel

    • Constructor Detail

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

        public AbstractOTSModel​(OTSSimulatorInterface simulator,
                                String shortName,
                                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,
                                String shortName,
                                String description,
                                StreamInformation streamInformation)
        Instantiate an abstract OTSModel with an initial set of streams (e.g., with seed management).
        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)
        streamInformation - StreamInformation; the initial set of streams (e.g., with seed management)
    • Method Detail

      • setInitialStreams

        public static StreamInformation setInitialStreams()
        Create the default initial streams.
        Returns:
        StreamInformation; the default initial streams
      • getShortName

        public final 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​(String shortName)
        Parameters:
        shortName - String; set shortName
      • getDescription

        public final 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​(String description)
        Parameters:
        description - String; set description