Package de.rss.fachstudie.MiSim.models
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 MultiDataPointReportergeneralReportergeneral reporter, can be used if objects/classes do not want to create their own reporter or use a common reporter. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Stringdescription()Required method which returns a description for the model.voiddoInitialSchedules()Place all events on the internal event list of the simulator which are necessary to start the simulation.static MainModelget()voidinit()Initialize static model components like distributions and queues.static MainModelinitialize(String modelName)voidlog(String message)static voidmain(String[] args)Methods inherited from class desmoj.core.simulator.Model
checkCompatibility, connectToExperiment, createDefaultReporter, getEntities, getEntity, getExperiment, getParameterManager, getReportables, hasSubModels, init, isConnected, isMainModel, isSubModel, register, resetMethods inherited from class desmoj.core.simulator.Reportable
getCorrespondingSchedulable, getDescription, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setDescription, setReporterMethods 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, traceOnMethods inherited from class desmoj.core.simulator.NamedObject
getName, getQuotedName, rename, toString
-
Field Details
-
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
-
initialize
-
main
-
description
Required method which returns a description for the model.- Specified by:
descriptionin classdesmoj.core.simulator.Model- Returns:
- the description of the model
-
init
public void init()Initialize static model components like distributions and queues.- Specified by:
initin classdesmoj.core.simulator.Model
-
log
-
doInitialSchedules
public void doInitialSchedules()Place all events on the internal event list of the simulator which are necessary to start the simulation.- Specified by:
doInitialSchedulesin classdesmoj.core.simulator.Model
-