| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <html lang="en"> |
| <head> |
| <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> |
| |
| <!-- Generated by javadoc (1.8.0_152) on Tue Jan 30 10:25:33 CET 2018 --> |
| <title>RuntimeUtil</title> |
| <meta name="date" content="2018-01-30"> |
| |
| |
| |
| <link media="all" href="index.css" type="text/css" rel="stylesheet"> |
| </head> |
| <body> |
| |
| |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| |
| <h2 title="Class RuntimeUtil" class="title">Class RuntimeUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" summary="Nested Class Summary table, listing nested classes, and an explanation" cellspacing="0" cellpadding="3" border="0"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tbody><tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="RuntimeUtil.AccessDirection.html">RuntimeUtil.AccessDirection</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="RuntimeUtil.PositionType.html">RuntimeUtil.PositionType</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="RuntimeUtil.TimeType.html">RuntimeUtil.TimeType</a></span></code> </td> |
| </tr> |
| </tbody></table> |
| </li> |
| </ul> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" summary="Method Summary table, listing methods, and an explanation" cellspacing="0" cellpadding="3" border="0"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static Runnable</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">addRuntimeToProcessAsNewRunnable</a></span>(Process process, |
| ExecutionNeed executionNeeds, |
| String runnableName, |
| <a href="RuntimeUtil.PositionType.html" title="enum in util">RuntimeUtil.PositionType</a> positon)</code> |
| <div class="block">Creates a new Runnable with the given runtime and create a CallSequence at |
| beginning / end of the given process</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">addRuntimeToRunnable</a></span>(Runnable runnable, |
| ExecutionNeed executionNeeds)</code> |
| <div class="block">Adds Runtime (given as ExecutionNeed) to an existing Runnable currently |
| without consideration of modes //TODO: Mode-based API</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">clearRuntimeOfModel</a></span>(Amalthea model, |
| ProcessingUnitDefinition procUnitDef, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Removes all runtimes of the whole model If the procUnitDef is null, the |
| complete ExecutionNeed is deleted if it is not null, then only the runtime |
| for the given procUnitDef is removed</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">clearRuntimeOfProcess</a></span>(Process process, |
| ProcessingUnitDefinition procUnitDef, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Removes all runtimes set in the given process If the procUnitDef is null, the |
| complete ExecutionNeed is deleted if it is not null, then only the runtime |
| for the given procUnitDef is removed</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">clearRuntimeOfRunnable</a></span>(Runnable runnable, |
| ProcessingUnitDefinition procUnitDef, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Clears all runtime information, for all procUnitDefs, for all modes</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">customStimulusFilter</a></span>(Stimulus stimulus)</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static Map<Process,Double></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getCumulativeProcessUtilizations</a></span>(Amalthea model, |
| <a href="RuntimeUtil.TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns the cumulative process utilization, i.e.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static HashMap<ProcessingUnitDefinition,Long></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionNeedValueCountExtendedForProcess</a></span>(Process process, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns a map that contains the value of ExecutionNeedValueCounts for all (in the |
| runnables) specified ProcessUnitDefinition</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static HashMap<ProcessingUnitDefinition,Long></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionNeedValueCountExtendedForRunnable</a></span>(Runnable runnable, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns a map that contains the ExecutionNeedValueCounts for all specified |
| procUnitDefs - all values will just be added up.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static Long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionNeedValueCountForProcess</a></span>(Process process, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| ProcessingUnitDefinition procUnitDef, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns the execution need value a process would need to execute for a given |
| feature and the given ProcessUnitdefition</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static Long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionNeedValueCountForRunnable</a></span>(Runnable runnable, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| ProcessingUnitDefinition procUnitDef, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns the ExecutionNeed value count a runnable would need to execute for a |
| given feature and the given ProcessUnitdefition</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static LongObject</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionNeedValueCountForTime</a></span>(ProcessingUnit procUnit, |
| Time time, |
| HwFeature hwFeature)</code> |
| <div class="block">convert a time into an ExecutionNeed value count for one feature</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static HashMap<ProcessingUnit,Time></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionTimeExtendedForProcess</a></span>(Amalthea model, |
| Process process, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns a map that contains the execution for all procUnit for which a procUnitDef |
| has specified runtime</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static Map<ProcessingUnit,Time></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionTimeExtendedForRunnable</a></span>(Amalthea model, |
| Runnable runnable, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Gets execution times for given runnable on all possible procUnits (with specified |
| procUnitDef)</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static Time</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionTimeForExecutionNeedValueCount</a></span>(long executionNeedValueCount, |
| ProcessingUnit procUnit, |
| HwFeature hwFeature, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Converts a number (ExecutionNeeds) into execution time on the given procUnit for one feature</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static Time</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionTimeForProcess</a></span>(Process process, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| ProcessingUnit procUnit, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns the execution time for the given process on the given procUnit</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static Time</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getExecutionTimeForRunnable</a></span>(Runnable runnable, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> execTimeType, |
| ProcessingUnit procUnit, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns the execution time for the given runnable on the given procUnit</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static Time</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getMean</a></span>(Deviation<? extends Time> deviation)</code> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static Time</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getMean</a></span>(Distribution<? extends Time> distribution2, |
| Time lowerBound, |
| Time upperBound)</code> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <T> long</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getMean</a></span>(Distribution<T> distribution, |
| long lowerBound, |
| long upperBound)</code> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static Map<Process,List<Time>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getPeriodsOfAllProcesses</a></span>(Amalthea model, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">gets all Period ranges from the model</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static List<Time></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getPeriodsOfProcess</a></span>(Amalthea model, |
| Process process, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns a list of all triggering periods.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static <T> Map<Stimulus,Long></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getPlainTriggerForProcess</a></span>(Amalthea model, |
| Process process, |
| long depthCounter, |
| function.Function<Stimulus,Boolean> filter)</code> |
| <div class="block">Returns all stimuli (matching filter) that trigger the given process</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <T> Map<Process,Map<Stimulus,Long>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getPlainTriggersForModel</a></span>(Amalthea model, |
| function.Function<Stimulus,Boolean> filter)</code> |
| <div class="block">Returns a map from process to all stimuli (matching filter) that |
| lead to that process with the correct prescaler</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static Map<Process,List<Deviation<Time>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getProcessesWithRelativePeriodicStimulus</a></span>(Amalthea model)</code> |
| <div class="block">Returns a Map of all sporadically triggered processes with their prescaler</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static Map<Process,List<Time>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getProcessesWithRelativePeriodicStimulus</a></span>(Amalthea model, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt)</code> |
| <div class="block">Returns a Map of all sporadically triggered processes with their prescaler</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>static Map<ProcessingUnit,Double></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getProcessUtilization</a></span>(Process process, |
| Amalthea model, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Calculates the utilization for a given process</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getProcessUtilization</a></span>(Process process, |
| ProcessingUnit procUnit, |
| Amalthea model, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Calculates the utilization for a given process on a given procUnit Assumption |
| (wrong): All triggers activate the process on all procUnits together! (at the |
| same time)</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getProcessUtilization</a></span>(Process process, |
| Time period, |
| ProcessingUnit procUnit, |
| Amalthea model, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Calculates the process utilization</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static List<ProcessingUnitDefinition></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getprocUnitDefsWithSpecifiedExecutionNeedsOfRunnable</a></span>(Runnable runnable, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns a list of all ProcessingUnitDefinitions for which the given runnable |
| contains runtime in a ExecutionNeed element</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getprocUnitUtilization</a></span>(ProcessingUnit procUnit, |
| Amalthea model, |
| <a href="TimeType.html" title="enum in util">RuntimeUtil.TimeType</a> tt, |
| List<HwFeature> hwFeatures, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Calculates the utilization for a given procUnit</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>static HashMap<Stimulus,Long></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getTriggeredStimuli</a></span>(Process process, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns a map of all stimuli, triggered by this process, associated with its |
| prescaler.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>static Map<Process,Long></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">getTriggeringProcesses</a></span>(Amalthea model, |
| InterProcessStimulus ip, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">Returns all Processes that trigger the given InterProcessStimulus</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">periodicStimulusFilter</a></span>(Stimulus stimulus)</code> </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>static <T> void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">setMean</a></span>(Distribution<T> distribution, |
| long l)</code> </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">setRuntimeOfRunnable</a></span>(Runnable runnable, |
| ExecutionNeed ExecutionNeeds, |
| ProcessingUnitDefinition procUnitDef, |
| EMap<ModeLabel,ModeLiteral> modes)</code> |
| <div class="block">set the runtime of the given runnable to the given runnable ExecutionNeed</div> |
| </td> |
| </tr> |
| <tr id="i36" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="#">sporadicStimulusFilter</a></span>(Stimulus stimulus)</code> </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| |
| |
| </body> |
| </html> |