Class MainModel

java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Reportable
desmoj.core.simulator.Model
de.rss.fachstudie.MiSim.models.MainModel

public class MainModel
extends desmoj.core.simulator.Model
Main class to start the experiment. This class will load the input file and create a model out of it. doInitialSchedules Starts the inital event. initFields Gets called at the start of the experiment and loads all relevant experiment resources.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static MultiDataPointReporter generalReporter
    general reporter, can be used if objects/classes do not want to create their own reporter or use a common reporter.
  • Constructor Summary

    Constructors
    Constructor Description
    MainModel​(desmoj.core.simulator.Model owner, String modelName, boolean showInReport, boolean showInTrace)  
  • Method Summary

    Modifier and Type Method Description
    String description()
    Required method which returns a description for the model.
    void doInitialSchedules()
    Place all events on the internal event list of the simulator which are necessary to start the simulation.
    static MainModel get()  
    void init()
    Initialize static model components like distributions and queues.
    static MainModel initialize​(String modelName)  
    void log​(String message)  
    static void main​(String[] args)  

    Methods inherited from class desmoj.core.simulator.Model

    checkCompatibility, connectToExperiment, createDefaultReporter, getEntities, getEntity, getExperiment, getParameterManager, getReportables, hasSubModels, init, isConnected, isMainModel, isSubModel, register, reset

    Methods inherited from class desmoj.core.simulator.Reportable

    getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReporter

    Methods inherited from class desmoj.core.simulator.ModelComponent

    current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn

    Methods inherited from class desmoj.core.simulator.NamedObject

    getName, getQuotedName, rename, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • generalReporter

      public static MultiDataPointReporter generalReporter
      general reporter, can be used if objects/classes do not want to create their own reporter or use a common reporter.
  • Constructor Details

    • MainModel

      public MainModel​(desmoj.core.simulator.Model owner, String modelName, boolean showInReport, boolean showInTrace)
  • Method Details

    • get

      public static MainModel get()
    • initialize

      public static MainModel initialize​(String modelName)
    • main

      public static void main​(String[] args)
    • description

      public String description()
      Required method which returns a description for the model.
      Specified by:
      description in class desmoj.core.simulator.Model
      Returns:
      the description of the model
    • init

      public void init()
      Initialize static model components like distributions and queues.
      Specified by:
      init in class desmoj.core.simulator.Model
    • log

      public void log​(String message)
    • doInitialSchedules

      public void doInitialSchedules()
      Place all events on the internal event list of the simulator which are necessary to start the simulation.
      Specified by:
      doInitialSchedules in class desmoj.core.simulator.Model