Class MsaTimer
java.lang.Object
MsaTimer
public class MsaTimer
- extends Object
Diese Klasse kann die Zeit messen, die ein Loesungsalgorithmus
des Maximum--Sub-Array--Problems benoetigt.
Auf Unix-basierten Systemen wie Mac OS X sollte statt dessen
das time
-Werkzeug benutzt werden.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
solver
MaximumSubArraySolver solver
MsaTimer
MsaTimer(MaximumSubArraySolver solver)
MsaTimer
MsaTimer(Class solverClass)
throws IllegalAccessException,
InstantiationException
- Throws:
IllegalAccessException
InstantiationException
MsaTimer
MsaTimer(String solverClassName)
throws IllegalAccessException,
InstantiationException,
ClassNotFoundException
- Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException
test
public static void test(MaximumSubArraySolver solver,
int length)
test
public static void test(Class solverClass,
int length)
throws IllegalAccessException,
InstantiationException
- Throws:
IllegalAccessException
InstantiationException
test
public static void test(String solverClassName,
int length)
throws IllegalAccessException,
InstantiationException,
ClassNotFoundException
- Throws:
IllegalAccessException
InstantiationException
ClassNotFoundException
main
public static void main(String[] args)
throws Throwable
- Throws:
Throwable
testSolver
void testSolver(int length)
Gehe zurueck zur Tutoriums-Homepage