diff --git a/.settings/org.eclipse.ltk.core.refactoring.prefs b/.settings/org.eclipse.ltk.core.refactoring.prefs new file mode 100644 index 0000000..b196c64 --- /dev/null +++ b/.settings/org.eclipse.ltk.core.refactoring.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false diff --git a/bin/BiathlonSymulation/Run.class b/bin/BiathlonSymulation/Run.class index 42bcca4..d801314 100644 Binary files a/bin/BiathlonSymulation/Run.class and b/bin/BiathlonSymulation/Run.class differ diff --git a/bin/BiathlonSymulation/Runner.class b/bin/BiathlonSymulation/Runner.class index 0a7554b..a8b3d7a 100644 Binary files a/bin/BiathlonSymulation/Runner.class and b/bin/BiathlonSymulation/Runner.class differ diff --git a/bin/BiathlonSymulation/RunnerGenerator.class b/bin/BiathlonSymulation/RunnerGenerator.class new file mode 100644 index 0000000..1c0ba5d Binary files /dev/null and b/bin/BiathlonSymulation/RunnerGenerator.class differ diff --git a/bin/BiathlonSymulation/SR.class b/bin/BiathlonSymulation/SR.class index d8c6526..f3b63bd 100644 Binary files a/bin/BiathlonSymulation/SR.class and b/bin/BiathlonSymulation/SR.class differ diff --git a/bin/BiathlonSymulation/Stage.class b/bin/BiathlonSymulation/Stage.class index e52cbbd..b7a4fc0 100644 Binary files a/bin/BiathlonSymulation/Stage.class and b/bin/BiathlonSymulation/Stage.class differ diff --git a/bin/BiathlonSymulation/Utils.class b/bin/BiathlonSymulation/Utils.class new file mode 100644 index 0000000..3254b09 Binary files /dev/null and b/bin/BiathlonSymulation/Utils.class differ diff --git a/doc/BiathlonSymulation/Run.html b/doc/BiathlonSymulation/Run.html new file mode 100644 index 0000000..57d664e --- /dev/null +++ b/doc/BiathlonSymulation/Run.html @@ -0,0 +1,558 @@ + + + +
+ +public class Run
+extends desmoj.core.simulator.Model
+| Modifier and Type | +Field and Description | +
|---|---|
static int |
+ACTIVE_RUNNERS_NUM |
+
SR |
+SR_1 |
+
SR |
+SR_2 |
+
SR |
+SR_3 |
+
SR |
+SR_4 |
+
Stage |
+stage1 |
+
Stage |
+stage2 |
+
Stage |
+stage3 |
+
Stage |
+stage4 |
+
Stage |
+stage5 |
+
| Constructor and Description | +
|---|
Run(desmoj.core.simulator.Model owner,
+ java.lang.String modelName,
+ boolean showInReport,
+ boolean showInTrace)
+Run constructor.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
java.lang.String |
+description()
+returns a description of the model to be used in the report.
+ |
+
void |
+doInitialSchedules()
+activates dynamic model components (simulation processes).
+ |
+
void |
+init()
+initialises static model components like distributions and queues.
+ |
+
static void |
+main(java.lang.String[] args)
+Runs the model.
+ |
+
void |
+QueueRunner(Runner runner)
+Queue runner to next stage.
+ |
+
connectToExperiment, createReporter, getEntities, getEntity, getExperiment, getParameterManager, getReportables, hasSubModels, init, isConnected, isMainModel, isSubModel, resetgetCorrespondingSchedulable, getObservations, getReporter, incrementObservations, incrementObservations, reportIsOn, reportOff, reportOn, resetAt, setCorrespondingSchedulable, setReportercurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static int ACTIVE_RUNNERS_NUM+
public Stage stage1+
public Stage stage2+
public Stage stage3+
public Stage stage4+
public Stage stage5+
public SR SR_1+
public SR SR_2+
public SR SR_3+
public SR SR_4+
public Run(desmoj.core.simulator.Model owner, + java.lang.String modelName, + boolean showInReport, + boolean showInTrace)+
owner - the model this model is part of (set to null when there is no such model)modelName - this model's nameshowInReport - flag to indicate if this model shall produce output to the report fileshowInTrace - flag to indicate if this model shall produce output to the trace filepublic static void main(java.lang.String[] args)+
args - is an array of command-line arguments (will be ignored here)public void QueueRunner(Runner runner)+
runner - - current, which has to be queued.public java.lang.String description()+
description in class desmoj.core.simulator.Modelpublic void doInitialSchedules()+
doInitialSchedules in class desmoj.core.simulator.Modelpublic void init()+
init in class desmoj.core.simulator.Modelpublic class Runner
+extends desmoj.core.simulator.SimProcess
+| Modifier and Type | +Field and Description | +
|---|---|
double |
+hold_time |
+
Run |
+model |
+
| Constructor and Description | +
|---|
Runner(desmoj.core.simulator.Model owner,
+ java.lang.String name,
+ boolean showInTrace,
+ int number,
+ double speed,
+ double accuracy)
+Constructor of the runner process
+ Used to create a new runner.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
double |
+getAccuracy()
+returns this runner average accuracy.
+ |
+
int |
+getNumber()
+returns this runner number.
+ |
+
double |
+getSpeed()
+returns this runner average speed.
+ |
+
int |
+getStage()
+returns this runner current stage.
+ |
+
void |
+incStage()
+Increment this runner stage.
+ |
+
void |
+lifeCycle()
+Describes this runner's life cycle:
+ |
+
void |
+sendMessage(java.lang.String msg)
+Sends message to this runner trace file.
+ |
+
activate, activate, activate, activate, activateAfter, activateBefore, cancelInterruptDelayed, canCooperate, clearInterruptCode, cooperate, getInterruptCode, getInterruptException, getMaster, getRealTimeConstraint, getSchedulingPriority, getSlaveWaitQueue, getSupervisor, hold, hold, hold, hold, interrupt, interrupt, interruptDelayed, interruptDelayed, isBlocked, isComponent, isDelayedInterruptScheduled, isInterrupted, isTerminated, obtainResources, passivate, prepareTransport, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setRealTimeConstraint, setSchedulingPriority, setSlaveWaitQueuegetIdentNumber, getPriority, getQueue, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, setPriority, setQueuingPrioritycancel, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedule, scheduledAt, scheduledNextcurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic double hold_time+
public Run model+
public Runner(desmoj.core.simulator.Model owner, + java.lang.String name, + boolean showInTrace, + int number, + double speed, + double accuracy)+
owner - the model this process belongs toname - this runner's nameshowInTrace - flag to indicate if this process shall produce
+ output for the tracenumber - this runner number.speed - this runner average speed.accuracy - ths runner average accuracy.public int getNumber()+
public double getSpeed()+
public double getAccuracy()+
public int getStage()+
public void incStage()+
public void sendMessage(java.lang.String msg)+
public void lifeCycle()+
lifeCycle in class desmoj.core.simulator.SimProcesspublic class RunnerGenerator
+extends desmoj.core.simulator.SimProcess
+| Constructor and Description | +
|---|
RunnerGenerator(desmoj.core.simulator.Model arg0,
+ java.lang.String arg1,
+ boolean arg2,
+ int quantity)
+RunnerGenerator constructor.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+lifeCycle()
+describes this process's life cycle: generate an amount of trucks.
+ |
+
activate, activate, activate, activate, activateAfter, activateBefore, cancelInterruptDelayed, canCooperate, clearInterruptCode, cooperate, getInterruptCode, getInterruptException, getMaster, getRealTimeConstraint, getSchedulingPriority, getSlaveWaitQueue, getSupervisor, hold, hold, hold, hold, interrupt, interrupt, interruptDelayed, interruptDelayed, isBlocked, isComponent, isDelayedInterruptScheduled, isInterrupted, isTerminated, obtainResources, passivate, prepareTransport, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setRealTimeConstraint, setSchedulingPriority, setSlaveWaitQueuegetIdentNumber, getPriority, getQueue, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, setPriority, setQueuingPrioritycancel, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedule, scheduledAt, scheduledNextcurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic RunnerGenerator(desmoj.core.simulator.Model arg0, + java.lang.String arg1, + boolean arg2, + int quantity)+
owner - the model this truck generator belongs toname - this runners generator's nameshowInTrace - flag to indicate if this process shall produce output for the tracequantity - describes quantity of runners to generate.public class SR
+extends desmoj.core.simulator.SimProcess
+| Constructor and Description | +
|---|
SR(desmoj.core.simulator.Model owner,
+ java.lang.String name,
+ boolean showInTrace)
+Constructor of the Shooting Range process
+
+ Used to create a new SR to serve runners.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+addRunner(Runner runner)
+Adds runner to this shooting range's queue.
+ |
+
void |
+lifeCycle()
+Describes this Shooting Range's life cycle.
+ |
+
activate, activate, activate, activate, activateAfter, activateBefore, cancelInterruptDelayed, canCooperate, clearInterruptCode, cooperate, getInterruptCode, getInterruptException, getMaster, getRealTimeConstraint, getSchedulingPriority, getSlaveWaitQueue, getSupervisor, hold, hold, hold, hold, interrupt, interrupt, interruptDelayed, interruptDelayed, isBlocked, isComponent, isDelayedInterruptScheduled, isInterrupted, isTerminated, obtainResources, passivate, prepareTransport, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setRealTimeConstraint, setSchedulingPriority, setSlaveWaitQueuegetIdentNumber, getPriority, getQueue, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, setPriority, setQueuingPrioritycancel, isCurrent, isScheduled, rename, reSchedule, reSchedule, reSchedule, scheduledAt, scheduledNextcurrent, currentEntity, currentEntityAll, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOngetName, getQuotedName, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic SR(desmoj.core.simulator.Model owner, + java.lang.String name, + boolean showInTrace)+
owner - the model this process belongs toname - this SR's nameshowInTrace - flag to indicate if this process shall produce output for the tracepublic void addRunner(Runner runner)+
runner, - runner to serve.public void lifeCycle()+
lifeCycle in class desmoj.core.simulator.SimProcesspublic class Stage
+extends java.lang.Object
+| Constructor and Description | +
|---|
Stage(int distance)
+Constructor of the Stage.
+ |
+
| Modifier and Type | +Method and Description | +
|---|---|
int |
+getDistance()
+Returns this stage distance in meters.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic class Utils
+extends java.lang.Object
+| Modifier and Type | +Method and Description | +
|---|---|
static double |
+round2(double num) |
+
static java.lang.String |
+timeInstantFormatter(desmoj.core.simulator.TimeInstant time) |
+
static java.lang.String |
+timeSpanFormatter(desmoj.core.simulator.TimeSpan time) |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static java.lang.String timeSpanFormatter(desmoj.core.simulator.TimeSpan time)+
public static java.lang.String timeInstantFormatter(desmoj.core.simulator.TimeInstant time)+
public static double round2(double num)+
| Modifier and Type | +Field and Description | +
|---|---|
Run |
+Runner.model |
+
| Modifier and Type | +Method and Description | +
|---|---|
void |
+SR.addRunner(Runner runner)
+Adds runner to this shooting range's queue.
+ |
+
void |
+Run.QueueRunner(Runner runner)
+Queue runner to next stage.
+ |
+
| Class | +Description | +
|---|---|
| Run | +
+ This is the model class.
+ |
+
| Runner | +
+ This class represents the runner in the Run model.
+ |
+
| RunnerGenerator | +
+ This class represents a process source, which generates an amount of runners.
+ |
+
| SR | +
+ This class represents a Shooting range in the Run model.
+ |
+
| Stage | +
+ This class represents a Stage.
+ |
+
| Utils | ++ |
| Class and Description | +
|---|
| Run
+ This is the model class.
+ |
+
| Runner
+ This class represents the runner in the Run model.
+ |
+
| SR
+ This class represents a Shooting range in the Run model.
+ |
+
| Stage
+ This class represents a Stage.
+ |
+
Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
+Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
+Each annotation type has its own separate page with the following sections:
+Each enum has its own separate page with the following sections:
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
+These links take you to the next or previous class, interface, package, or related page.
+These links show and hide the HTML frames. All pages are available with or without frames.
+The All Classes link shows all classes and interfaces except non-static nested types.
+Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
+The Constant Field Values page lists the static final fields and their values.
+model | time | event | entity | action(s) |
| Biathlon simulation | 449.9225 | ---- | Runner#24 | Passed first checkpoint! 7m, 29.92s |
| 453.1186 | Runner#30 | Passed first checkpoint! +3.2s | ||
| 456.4304 | Runner#12 | Passed first checkpoint! +6.51s | ||
| 459.2522 | Runner#23 | Passed first checkpoint! +9.33s | ||
| 461.4218 | Runner#6 | Passed first checkpoint! +11.5s | ||
| 462.0800 | Runner#20 | Passed first checkpoint! +12.16s | ||
| 462.3789 | Runner#16 | Passed first checkpoint! +12.46s | ||
| 465.0319 | Runner#17 | Passed first checkpoint! +15.11s | ||
| 468.0105 | Runner#15 | Passed first checkpoint! +18.09s | ||
| 469.5389 | Runner#22 | Passed first checkpoint! +19.62s | ||
| 472.4149 | Runner#29 | Passed first checkpoint! +22.49s | ||
| 476.0904 | Runner#13 | Passed first checkpoint! +26.17s | ||
| 478.4627 | Runner#28 | Passed first checkpoint! +28.54s | ||
| 482.3090 | Runner#7 | Passed first checkpoint! +32.39s | ||
| 484.2433 | Runner#21 | Passed first checkpoint! +34.32s | ||
| 488.5814 | Runner#25 | Passed first checkpoint! +38.66s | ||
| 489.3194 | Runner#14 | Passed first checkpoint! +39.4s | ||
| 492.5571 | Runner#9 | Passed first checkpoint! +42.63s | ||
| 494.0655 | Runner#19 | Passed first checkpoint! +44.14s | ||
| 494.4037 | Runner#10 | Passed first checkpoint! +44.48s | ||
| 494.9030 | Runner#27 | Passed first checkpoint! +44.98s | ||
| 497.2606 | Runner#11 | Passed first checkpoint! +47.34s | ||
| 498.4390 | Runner#18 | Passed first checkpoint! +48.52s | ||
| 501.7794 | Runner#26 | Passed first checkpoint! +51.86s | ||
| 505.5724 | Runner#5 | Passed first checkpoint! +55.65s | ||
| 505.8042 | Runner#3 | Passed first checkpoint! +55.88s | ||
| 508.6586 | Runner#1 | Passed first checkpoint! +58.74s | ||
| 510.1231 | Runner#4 | Passed first checkpoint! + 1m, 0.2s | ||
| 510.2332 | Runner#8 | Passed first checkpoint! + 1m, 0.31s | ||
| 513.5110 | Runner#2 | Passed first checkpoint! + 1m, 3.59s | ||
| Biathlon simulation | 421.3172 | ---- | Runner#8 | Passed first checkpoint! 7m, 1.32s |
| 424.3188 | Runner#17 | Passed first checkpoint! +3.0s | ||
| 425.0096 | Runner#16 | Passed first checkpoint! +3.69s | ||
| 429.2924 | Runner#28 | Passed first checkpoint! +7.98s | ||
| 429.5059 | Runner#6 | Passed first checkpoint! +8.19s | ||
| 431.3068 | Runner#26 | Passed first checkpoint! +9.99s | ||
| 431.4464 | Runner#5 | Passed first checkpoint! +10.13s | ||
| 432.7087 | Runner#7 | Passed first checkpoint! +11.39s | ||
| 433.3377 | Runner#14 | Passed first checkpoint! +12.02s | ||
| 433.9029 | Runner#1 | Passed first checkpoint! +12.59s | ||
| 433.9158 | Runner#2 | Passed first checkpoint! +12.6s | ||
| 436.7185 | Runner#27 | Passed first checkpoint! +15.4s | ||
| 436.8826 | Runner#20 | Passed first checkpoint! +15.57s | ||
| 438.9069 | Runner#3 | Passed first checkpoint! +17.59s | ||
| 439.3006 | Runner#18 | Passed first checkpoint! +17.98s | ||
| 446.4669 | Runner#29 | Passed first checkpoint! +25.15s | ||
| 447.6020 | Runner#30 | Passed first checkpoint! +26.28s | ||
| 448.8264 | Runner#4 | Passed first checkpoint! +27.51s | ||
| 453.4369 | Runner#23 | Passed first checkpoint! +32.12s | ||
| 456.5519 | Runner#21 | Passed first checkpoint! +35.23s | ||
| 462.0499 | Runner#25 | Passed first checkpoint! +40.73s | ||
| 464.6455 | Runner#24 | Passed first checkpoint! +43.33s | ||
| 464.8225 | Runner#13 | Passed first checkpoint! +43.51s | ||
| 467.7375 | Runner#12 | Passed first checkpoint! +46.42s | ||
| 470.4446 | Runner#22 | Passed first checkpoint! +49.13s | ||
| 475.1990 | Runner#19 | Passed first checkpoint! +53.88s | ||
| 476.8465 | Runner#10 | Passed first checkpoint! +55.53s | ||
| 478.0498 | Runner#9 | Passed first checkpoint! +56.73s | ||
| 490.9174 | Runner#11 | Passed first checkpoint! + 1m, 9.6s | ||
| 504.7325 | Runner#15 | Passed first checkpoint! + 1m, 23.42s |
-created using DESMO-J Version 2.3.4 at Sat Oct 20 11:35:40 CEST 2012 - DESMO-J is licensed under Apache License, Version 2.0 +created using DESMO-J Version 2.3.4 at Sun Oct 21 11:49:18 CEST 2012 - DESMO-J is licensed under Apache License, Version 2.0