Class STNURTE.RTEState
java.lang.Object
it.univr.di.cstnu.algorithms.STNURTE.RTEState
- Enclosing class:
STNURTE
Class to represent the data for an execution of
STNURTE.rte(Strategy, Strategy)
.-
Field Summary
FieldsModifier and TypeFieldDescriptionStrategy used by Environment to choice a duration.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.org.apache.commons.math3.stat.descriptive.SummaryStatistics
Execution time statistics.Strategy used by RTED to choice a time instant.it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
<LabeledNode> Schedule. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) TimeInterval
it.unimi.dsi.fastutil.objects.Object2IntMap.Entry<LabeledNode>[]
it.unimi.dsi.fastutil.objects.Object2IntMap
<LabeledNode> toString()
(package private) void
updateLowerBound
(LabeledNode node, int lower) Updates the lower bound of the time window of the given node to lower value.(package private) void
updateUpperBound
(LabeledNode node, int upper) Updates the upper bound of the time window of the given node to upper.
If the node is already executed, it checks that the execution time is ≤ the given upper as sanity check.
-
Field Details
-
environmentStrategy
Strategy used by Environment to choice a duration. -
executionTimeRTEns
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeRTEnsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
executionTimeRTEinitNs
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeRTEinitNsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
executionTimeRTEDecisionNs
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeRTEDecisionNsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
executionTimeRTEUpdateNs
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeRTEUpdateNsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
executionTimeObserveNs
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeObserveNsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
executionTimeHCEns
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeHCEnsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
executionTimeHOEns
public org.apache.commons.math3.stat.descriptive.SummaryStatistics executionTimeHOEnsExecution time statistics. Average execution time for each node (it is cumulative of all other times). -
rtedStrategy
Strategy used by RTED to choice a time instant. -
schedule
Schedule. Map (node, real) that represents the schedule of the network. It is filled bySTNURTE.rte(Strategy, Strategy)
method.
-
-
Constructor Details
-
RTEState
RTEState()Default constructor
-
-
Method Details
-
getOrderedSchedule
- Returns:
- the schedule as an array sorted w.r.t. the order of node execution.
-
getSchedule
- Returns:
- a view-only copy of the current schedule.
-
toString
-
getCurrentTimeWindow
- Returns:
- a copy of the current time window of the given node considering its time window and possible waits.
-
updateLowerBound
Updates the lower bound of the time window of the given node to lower value. If the node is already executed, it checks that the execution time is ≥ the given lower as sanity check.- Throws:
IllegalStateException
- if the update raises an inconsistency.
-
updateUpperBound
Updates the upper bound of the time window of the given node to upper.
If the node is already executed, it checks that the execution time is ≤ the given upper as sanity check.- Throws:
IllegalStateException
- if the update raises an inconsistency.
-