Michael Ludwig committed b4d9f39

Expose list of controllers currently in manager.

Comments (0)

Files changed (2)

 ## Release Notes
+### 1.5.3
+* Improve performance in default Property implementations by restricting them
+  to a single primitive per component (removing a multiply and add on access).
+* Expose multi-element supporting IndexedDataStores that were previously hidden
+  inside the provided Property implementations.
+* Simplify Phase enum and usage to not need ALL value.
+* Fix bug with time delta calculation.
+* Improve Result API in ControllerManage to not cause a type explosion.
 ### 1.5.2
 * Improve PropertyFactory API to better support custom Property definitions 
   that want to define new annotations to control default behavior, etc.


 package com.lhkbob.entreri;
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
+     * Get an unmodifiable view of the controllers registered with this manager.
+     * 
+     * @return The controllers in the manager
+     */
+    public List<Controller> getControllers() {
+        return Collections.unmodifiableList(controllers);
+    }
+    /**
      * Report the given Result to all registered Controllers in this manager.
      * This can only be called while a Phase is being processed.
      * @param controller The controller whose time is looked up
      * @param phase The phase that whose timing is returned
-     * @return The last execution time of the controller
+     * @return The last execution time of the controller in nanoseconds.
     public long getExecutionTime(Controller controller, Phase phase) {
         if (controller == null || phase == null)
      * Return the last execution time for the given controller, for all its
-     * phases.
+     * phases, in nanoseconds.
      * @param controller The controller whose time is looked up
      * @return The last total execution time of the controller