@@ -80,7 +80,7 @@ public void addFilteredMethodConsumedEnergy(String methodName, double delta) {
8080
8181 /**
8282 * Adds the given energy consumption to the given call tree.
83- * @param callTree a CallTree, the call tree to which the consumption is mapped
83+ * @param callTree a {@link CallTree} the call tree to which the consumption is mapped
8484 * @param delta a double, the amount of energy to be added
8585 */
8686 public void addCallTreeConsumedEnergy (CallTree callTree , double delta ) {
@@ -89,7 +89,7 @@ public void addCallTreeConsumedEnergy(CallTree callTree, double delta) {
8989
9090 /**
9191 * Adds the given energy consumption to the given filtered call tree
92- * @param callTree a CallTree, the call tree to which the consumption is mapped
92+ * @param callTree a {@link CallTree} , the call tree to which the consumption is mapped
9393 * @param delta a double, the amount of energy to be added
9494 */
9595 public void addFilteredCallTreeConsumedEnergy (CallTree callTree , double delta ) {
@@ -101,11 +101,11 @@ public void addFilteredCallTreeConsumedEnergy(CallTree callTree, double delta) {
101101 * Creates or update the needed data structures.
102102 * @param methodName a String, the name of the method
103103 * @param timestamp a long representing an UNIX timestamp
104- * @param energy a double, the method energy consomption
104+ * @param energy a double, the method energy consumption
105105 */
106106 public void trackMethodConsumption (String methodName , long timestamp , double energy ) {
107107 if (!this .methodsConsumptionEvolution .containsKey (methodName )) {
108- //Creating a new map for tracking the method's energy consumption over the time
108+ // Creating a new map for tracking the method's energy consumption over the time
109109 Map <Long , Double > methodEnergyTrackMap = new ConcurrentHashMap <>();
110110 methodEnergyTrackMap .put (timestamp , energy );
111111
@@ -120,7 +120,7 @@ public void trackMethodConsumption(String methodName, long timestamp, double ene
120120 * Creates or update the needed data structures.
121121 * @param methodName a String, the name of the method
122122 * @param timestamp a long representing an UNIX timestamp
123- * @param energy a double, the method energy consomption
123+ * @param energy a double, the method energy consumption
124124 */
125125 public void trackFilteredMethodConsumption (String methodName , long timestamp , double energy ) {
126126 if (!this .filteredMethodsConsumptionEvolution .containsKey (methodName )) {
@@ -145,47 +145,49 @@ public double getTotalConsumedEnergy() {
145145
146146 /**
147147 * Returns the energy consumed by each method.
148- * @return a Map<String, Double> mapping method's name to their respective energy consumption.
148+ * @return a {@code Map<String, Double>} mapping method's name to their respective energy consumption.
149149 */
150150 public Map <String , Double > getMethodsConsumedEnergy () {
151151 return Collections .unmodifiableMap (methodsConsumedEnergy );
152152 }
153153
154154 /**
155155 * Returns the energy consumed by each filtered method.
156- * @return a Map<String, Double> mapping filtered method's name to their respective energy consumption.
156+ * @return a {@code Map<String, Double>} mapping filtered method's name to their respective energy consumption.
157157 */
158158 public Map <String , Double > getFilteredMethodsConsumedEnergy () {
159159 return Collections .unmodifiableMap (filteredMethodsConsumedEnergy );
160160 }
161161
162162 /**
163163 * Returns the energy consumption evolution of each method.
164- * @return a Map<String, Map<Long,Double>> mapping each method's name to their consumption evolution. Consumption evolution is stored as a Map<Long,Double> mapping UNIX timestamps to energy consumption.
164+ * @return a {@code Map<String, Map<Long,Double>>} mapping each method's name to their consumption evolution.
165+ * Consumption evolution is stored as a {@code Map<Long,Double>} mapping UNIX timestamps to energy consumption.
165166 */
166167 public Map <String , Map <Long , Double >> getMethodsConsumptionEvolution (){
167168 return this .methodsConsumptionEvolution ;
168169 }
169170
170171 /**
171172 * Returns the energy consumption evolution of each filtered method.
172- * @return a Map<String, Map<Long,Double>> mapping each filtered method's name to their consumption evolution. Consumption evolution is stored as a Map<Long,Double> mapping UNIX timestamps to energy consumption.
173+ * @return a {@code Map<String, Map<Long,Double>>} mapping each filtered method's name to their consumption evolution.
174+ * Consumption evolution is stored as a {@code Map<Long,Double>} mapping UNIX timestamps to energy consumption.
173175 */
174176 public Map <String , Map <Long , Double >> getFilteredMethodsConsumptionEvolution (){
175177 return this .filteredMethodsConsumptionEvolution ;
176178 }
177179
178180 /**
179181 * Returns the energy consumption of each call tree.
180- * @return a Map<CallTree, Double> mapping each call tree to their total energy consumption.
182+ * @return a {@code Map<CallTree, Double>} mapping each call tree to their total energy consumption.
181183 */
182184 public Map <CallTree , Double > getCallTreesConsumedEnergy () {
183185 return this .callTreesConsumption ;
184186 }
185187
186188 /**
187189 * Returns the energy consumption of each filtered call tree.
188- * @return a Map<CallTree, Double> mapping each filtered call tree to their total energy consumption.
190+ * @return a {@code Map<CallTree, Double>} mapping each filtered call tree to their total energy consumption.
189191 */
190192 public Map <CallTree , Double > getFilteredCallTreesConsumedEnergy () {
191193 return this .filteredCallTreesConsumption ;
0 commit comments