Skip to content

Commit 033a7c6

Browse files
merkstemaxkurze1
authored andcommitted
Remove unused variable
1 parent 91084e9 commit 033a7c6

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

prism/src/simulator/LabelEvaluator.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ public LabelEvaluator(LabelList labelList) throws PrismLangException
3737
}
3838

3939
/**
40-
* Fix an order on the labels such that l1 < l2 if l2 depends on l1
41-
* @param labels
40+
* Fix an order on the labels such that l1 < l2 if l2 depends on l1.
41+
*
42+
* @param labels a {@link LabelList} of labels to be evaluated
4243
* @return an int array of the label indices in ascending order
4344
* @throws PrismLangException In case a label depencies could not be computed.
4445
*/
@@ -70,6 +71,7 @@ public int compare(Integer row, Integer col)
7071

7172
/**
7273
* Returns the value of a specific label in a specific state.
74+
*
7375
* @param state The state to evaluate in.
7476
* @param label The label that will be evaluated.
7577
* @return The value of the Label.
@@ -83,6 +85,7 @@ public boolean getLabelValue(State state, String label) throws PrismLangExceptio
8385
/**
8486
* This method provides all label values concerning a given state. <br>
8587
* It will evaluate all the Labels if necessary.
88+
*
8689
* @param state The state to evaluate in.
8790
* @return Returns a {@link Map} containing all label-values for the given state, indexed by their name.
8891
* @throws PrismLangException In case a label couldn't be evaluated.
@@ -95,6 +98,7 @@ public Predicate<String> getLabelValues(State state) throws PrismLangException
9598
/**
9699
* This method provides all values of a certain label. They will be ordered by the given statesList. <br>
97100
* States will be evaluated if necessary.
101+
*
98102
* @param label The name of the label.
99103
* @param statesList The states to evaluate against in correct order.
100104
* @return All values of the label.
@@ -115,7 +119,8 @@ public BitSet getLabel(String label, List<State> statesList) throws PrismExcepti
115119

116120
/**
117121
* This method provides all label values of a certain state as a {@link BitSet}.
118-
* The labels are indexed in the same order as inside the {@link LabelEvaluator#labelList}
122+
* The labels are indexed in the same order as inside the {@link LabelEvaluator#labelList}.
123+
*
119124
* @param state The state to evaluate in.
120125
* @return Always returns a BitSet with the label values.
121126
* @throws PrismLangException In case a label evaluation fails.
@@ -131,15 +136,14 @@ protected BitSet getStateValues(State state) throws PrismLangException
131136
}
132137

133138
/**
134-
* Evaluates all label with the given state. <br>
139+
* Evaluates all label with the given state.
135140
*
136141
* @param state The state to evaluate the labels in.
137142
* @return A {@link BitSet} of all label values in this state.
138143
* @throws PrismLangException In case a label evaluation fails.
139144
*/
140145
private BitSet evaluateState(State state) throws PrismLangException
141146
{
142-
int numLabels = labelList.size();
143147
BitSet values = new BitSet();
144148
Predicate<String> labelValues = asPredicate(values);
145149
for (int i : evaluationOrder) {

0 commit comments

Comments
 (0)